Horizontal Barplot in ggplot2

ggplot(df, aes(x=reorder(Seller, Num), y=Avg_Cost)) +
  geom_bar(stat="identity") +
  coord_flip()

Without stat="identity" ggplot wants to aggregate your data into counts.

Leave a Comment