Description Usage Arguments Examples
Order a categorical variable by the values in a numerical variable in ggplot
1 | order_axis(data, axis, column)
|
data |
data frame |
axis |
categorical axis |
column |
numerical variable by which to order |
1 2 | ggplot(order_axis(df, AXIS_X, COLUMN_Y),
aes(x = AXIS_X_o, y = COLUMN_Y))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.