Description Usage Arguments Value
View source: R/plot_summary.bygroup.R
Plot average/median/cumulative value (and number of cross-sectional units over which is performed the calculation) over time.
1 2 | plot_summary.bygroup(data, variable_to_summ, group, n,
sum.stat = c("mean", "median", "sum", "n"), na.rm = TRUE)
|
data |
Dataframe. |
variable_to_summ |
Variable of interest, numeric vector. |
group |
Grouping variable, character or date vector. |
n |
Cross-sectional unit, character vector. |
sum.stat |
Summary statistic to plot, character. Default set to mean. |
na.rm |
Default TRUE. |
List with two elements: plot and dataframe with values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.