reorder_within | R Documentation |
This function reorder labels in a ggplot2 barplot figure with facets (see examples)
reorder_within(x, by, within, fun = mean, sep = "___", ...)
x |
the name of the variable that need to be ordered |
by |
the name of the variable that will be used to order |
within |
the name of the variable used to create the facets |
fun |
(not used) |
sep |
default variable to manipulate the labels. Default "__" |
... |
additional parameter... |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.