DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR R
order barplot ggplot2 by value
ggplot(df, aes(x = reorder(x_col_valus, -col_to_sort_by), y = value)) + geom_bar(stat = "identity")
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#order
#barplot
ADD COMMENT
Topic
COMMENT
Name
4+3 =
Submit