Descriptive statistics of a continuous variable for the different levels of
a categorical variable. boxplot.group_summary() creates boxplots of
the continuous variable for the different levels of the categorical variable.
Usage
ds_group_summary(data, gvar, cvar)
# S3 method for ds_group_summary
plot(x, print_plot = TRUE, ...)
Arguments
data
A data.frame or a tibble.
gvar
Column in data.
cvar
Column in data.
x
An object of the class ds_group_summary.
print_plot
logical; if TRUE, prints the plot else returns a plot object.
...
Further arguments to be passed to or from methods.
Value
ds_group_summary() returns an object of class "ds_group_summary".
An object of class "ds_group_summary" is a list containing the
following components:
stats
A data frame containing descriptive statistics for the different
levels of the factor variable.
tidy_stats
A tibble containing descriptive statistics for the different
levels of the factor variable.