R/pat_monitorComparison.R
pat_monitorComparison.Rd
Creates and returns a ggplot object that plots raw pat data, hourly aggregated pat data and hourly data from the nearest federal monitor from the PWFSL database.
pat_monitorComparison( pat = NULL, FUN = AirSensor::PurpleAirQC_hourly_AB_01, distanceCutoff = 20, ylim = NULL, replaceOutliers = TRUE, timezone = NULL )
pat | PurpleAir Timeseries pat object. |
---|---|
FUN | Algorithm applied to pat object for hourly aggregation and
quality control. See |
distanceCutoff | Numeric distance (km) cutoff for nearest PWFSL monitor. |
ylim | Vector of (lo,hi) y-axis limits. |
replaceOutliers | Logical specifying whether replace outliers in the pat object. |
timezone | Olson timezone used for the time axis. (Defaults to
|
A ggplot object.
#> Warning: Removed 9814 rows containing missing values (geom_point).#> Warning: Removed 9778 rows containing missing values (geom_point).#> Warning: Removed 19 rows containing missing values (geom_point).#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <ce>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <bc>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <ce>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <bc>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <ce>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <bc>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <ce>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <bc>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <ce>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <bc>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <ce>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <bc>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <ce>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <bc>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <ce>#> Warning: conversion failure on 'PM2.5 (μg / m³)' in 'mbcsToSbcs': dot substituted for <bc># }