geom_trend | R Documentation |
Create trend chart with points and smoothed line
geom_trend( df, .date, .n, ..., percent = FALSE, alpha = 0.2, se = FALSE, x_lab = NULL, y_lab = "Count", title = NULL, facet = NULL, scales = "free_y" )
df |
A tidy dataset with one count per date per group |
.date |
Date column |
.n |
Count or Percent column |
... |
additional data to pass to ggplot |
percent |
Whether to use percent labels on y-axis |
alpha |
geom_point alpha |
se |
geom_smooth error bars |
x_lab |
label of x-axis |
y_lab |
label of y-axis |
title |
title of plot |
facet |
group for faceting |
scales |
scales passed to facet_wrap |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.