Description Usage Arguments Value Examples
View source: R/prepare_by_group_trend_graph.R
Reads a data frame and line plots the selected variables (which need to be numeric) by group and an ordered factor (normally the time-series indicator).
1 2 3 4 5 6 7 8 |
df |
Data frame containing the ordered factor and a set of numerical variables to be plotted. |
ts_id |
a string containing the column name of the ordered factor (normally the time-series indicator). |
group_var |
a variable coercible into a factor to group the data on. |
var |
The name of the variable that you want to plot. |
points |
Do you want points to indicate the observations? Defaults to |
error_bars |
Do you want error bars to be plotted? Defaults to |
A list containing two items:
A data frame containing the plotted means and standard errors by group
The plot as returned by ggplot
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.