Description Usage Arguments Value Examples
View source: R/pat_ValidationPlot.R
Generates a scatter plot of pat sensor readings for a specified parameter with horizontal lines for valid reading limits.
1 | pat_ValidationPlot(pat, param, param_lims = NULL)
|
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. |
ggplot object.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.