Display a subset of classes in axes in ggplot
I used this kind of wor around, but if you have another solution, please enlighten me :)

df %&gt;%
  ggplot() +
  geom_bar(mapping = aes(x = N%&gt;% as.factor())) +
  xlab(label = 'N') +
  theme(axis.text.x = element_text(angle = 45, size = 8))