Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library(ggplot2)
- ## To sort colY in descending order in the plot
- ggplot(data=df, aes(x=reorder(colX, -colY), y=colY)) +
- geom_bar(stat="identity") +
- theme(axis.text.x = element_text(angle = 45, hjust = 1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement