Learn R Programming

AirSensor (version 1.0.2)

timeseriesTbl_multiPlot: Faceted plot of a timeseries tibble

Description

A plotting function that uses ggplot2 to display a suite of timeseries plots all at once.

Usage

timeseriesTbl_multiPlot(
  tbl = NULL,
  pattern = NULL,
  parameters = NULL,
  nrow = NULL,
  ncol = NULL,
  autoRange = TRUE,
  ylim = NULL,
  style = "line"
)

Arguments

tbl

Tibble with a datetime.

pattern

Pattern used to match groups of parameters.

parameters

Custom vector of aggregation parameters to view.

nrow

Number of rows in the faceted plot.

ncol

Number of columns in the faceted plot.

autoRange

Logical specifying whether to scale the y axis separately for each plot or to use a common y axis.

ylim

Vector of (lo,hi) y-axis limits.

style

Style of plot: ("point", "line", "area")

Examples

Run this code
# NOT RUN {
library(AirSensor)

tbl <- pat_aggregateOutlierCounts(example_pat_failure_A)

timeseriesTbl_multiPlot(
  tbl,
  pattern = c("humidity|temperature"),
  nrow = 2
)
# }

Run the code above in your browser using DataLab