View source: R/get_summ_stats.R
get_summ_stats | R Documentation |
mk_histogram
. Not for external use.get_summ_stats
takes in the original data frame, the
x and group variables. It returns a data frame of the summary stats (median,
mean and etc) of x in each group. Used to add lines at these summary stats
for histograms.
get_summ_stats(df, xvar, facet_by)
df |
Original data frame. |
xvar |
String, name of a continuous variable for x-axis. |
facet_by |
String, name of a categorical variable for grouping x and creating a facet for each group. |
A data frame containing summary stats for each group.
mk_histogram
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.