Answers for "order barplot ggplot2 by value"

R
0

order barplot ggplot2 by value

ggplot(df, aes(x = reorder(x_col_valus, -col_to_sort_by), y = value)) + 
  geom_bar(stat = "identity")
Posted by: Guest on July-15-2021

Browse Popular Code Answers by Language