pat_ValidationPlot: Do sensor readings fall within spec?

Description Usage Arguments Value Examples

View source: R/pat_ValidationPlot.R

Description

Generates a scatter plot of pat sensor readings for a specified parameter with horizontal lines for valid reading limits.

Usage

1
pat_ValidationPlot(pat, param, param_lims = NULL)

Arguments

pat

A Purple Air Time Series object.

param

A Purple Air sensor parameter, one of "pm25", "temperature", "humidity".

param_lims

Numeric vector of length 2 specifying range of valid measurements fpr plotting horizontal lines. If default parameters are based off device specifications at https://www2.purpleair.com/products/purpleair-pa-ii.

Value

ggplot object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
  example_pat <- pat_load(label = "example")

  # Plotting with default specs.
  plot <- pat_ValidationPlot(pat = example_pat, param = 'pm25')

  # Plotting with custom specs.
  custom_lims <- c(5, 150)
  plot<- pat_ValidationPlot(pat = example_pat,
                            param = 'pm25',
                            param_lims = custom_lims)

## End(Not run)

iozeroff/pavisualizR documentation built on July 5, 2020, 12:14 p.m.