Description Usage Arguments Examples
This function quickly executes the aggregate and ggplot functions to produce a simple line graph with separate lines based on an indicated group.
1 2 |
df |
A dataframe. |
x |
The variable to appear on the x-axis. |
y |
The variable to appear on the y-axis. |
by |
The grouping variable. |
facet_var |
The facet-grouping variable. |
grid_var |
The grid-grouping variable. When using grid_var, it is essentially interchangable with facet_var, as together they determine the order and axis of the grid. grid_var cannot be used independently of facet_var for obvious reasons. |
error_bars |
Include standard error bars? |
error_bar_width |
Error bar width |
1 | lgby()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.