0

I know many people have asked this question, but I found the answers too confusing due to the problems being different than mine. Currently, my x-values (species) are just ordered randomly, when I want them ordered from the largest to the smallest.

Code:

ggplot(moth.abundance, aes(x=Species, y=Total)) +geom_bar(stat='identity')+theme_classic()+labs(x='Moth Species', y='Count')+
  theme(axis.text.x = element_text(angle = 90))

Reference image: https://i.stack.imgur.com/WbGmo.png

Vinícius Félix
  • 4,501
  • 3
  • 12
  • 28

0 Answers0