plot_timeseries: Plot Time Series Data

View source: R/plot.R

plot_timeseriesR Documentation

Plot Time Series Data

Description

If by = NULL plot_timeseries returns a ggplot object. Otherwise it returns a list of ggplot objects.

Usage

plot_timeseries(
  data,
  by = NULL,
  y0 = TRUE,
  size = 1,
  messages = getOption("wqbc.messages", default = TRUE)
)

Arguments

data

A data frame of the data to plot.

by

A character vector of the columns to plot the time series by.

y0

A flag indicating whether to expand the y-axis limits to include 0.

size

A number of the point size.

messages

A flag indicating whether to print messages.

Examples

plot_timeseries(ccme[ccme$Variable == "As", ])
plot_timeseries(ccme, by = "Variable")

bcgov/wqbc documentation built on Feb. 11, 2023, 11:15 p.m.