Description Usage Arguments Value Examples
View source: R/prepare_by_group_violin_graph.R
Reads a data frame containing a grouping factor and a numerical variable and plots a series of violin graphs by the grouping factor.
1 2 3 4 5 6 7 8 |
df |
Data frame containing the grouping factor and the numerical variable to be plotted |
by_var |
a string containing the column name of the grouping factor |
var |
a string containing the column name of the numerical variable |
order_by_mean |
a logical value indicating whether you want your violins to be ordered by group means (defaults to FALSE) |
group_on_y |
a logical value indicating whether you want your violins to be oriented horizontally (defaults to TRUE) |
... |
additional parameters that are passed to
|
The plot as returned by ggplot2
1 2 3 | data(russell_3000)
df <- treat_outliers(russell_3000)
prepare_by_group_violin_graph(df, "sector", "nioa")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.