Description Usage Arguments Value Examples
View source: R/measure_trends.R
Plot the change of a measure (or set of measures) over time where the data is in "long" format That is, all measures are in one column with another column labeling each measure value
1 2 3 4 5 6 7 | measure_change_over_time_long(
data,
time_col,
measure_labels,
measure_values,
...
)
|
data |
A data frame or tibble |
time_col |
Unquoted column name with time values to plot on the x axis |
measure_labels |
Unquoted column name containing the name of the measure in the corresponding measure_values (see below) row (up to 6 measures) |
measure_values |
Unquted column name of the column with the measure values to be plotted |
... |
Unquoted names of measures to plot (up to 6 measures) |
A ggplot plot object
1 | measure_change_over_time_long(ggplot2::economics_long, date, variable, value, pop, unemploy)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.