prepare_by_group_violin_graph: Prepares a by Group Violin Graph

Description Usage Arguments Value Examples

View source: R/prepare_by_group_violin_graph.R

Description

Reads a data frame containing a grouping factor and a numerical variable and plots a series of violin graphs by the grouping factor.

Usage

1
2
prepare_by_group_violin_graph(df, by_var, var, order_by_mean = FALSE,
  group_on_y = TRUE, ...)

Arguments

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 geom_violin

Value

The plot as returned by ggplot2

Examples

1
2
3

Tyler-Gatech/tk_expandar documentation built on May 28, 2020, 12:49 a.m.