geom_trend: Trend chart

View source: R/geom_trend.R

geom_trendR Documentation

Trend chart

Description

Create trend chart with points and smoothed line

Usage

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"
)

Arguments

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


scottfrechette/funcyfrech documentation built on Aug. 26, 2022, 9:13 a.m.