Creates a multi-panel scatterPlot comparing all variables in the pat object. If any variables have no valid data, they are omitted from the plot.

The list of available parameters include:

  • datetime -- measurement time

  • pm25_A -- A channel PM2.5 (ug/m3)

  • pm25_A -- A channel PM2.5 (ug/m3)

  • temperature -- temperature (F)

  • humidity -- humidity (%)

  • uptime -- seconds since last reset

  • adc0 -- analog input voltage

  • rssi -- wifi signal strength (dBm)

pat_scatterPlot(
  pat = NULL,
  parameters = c("datetime", "pm25_A", "pm25_B", "temperature", "humidity"),
  sampleSize = 5000,
  sampleFraction = NULL,
  size = 0.5,
  shape = 15,
  color = "black",
  alpha = 0.25
)

Arguments

pat

PurpleAir Timeseries pat object.

parameters

Vector of parameters to include.

sampleSize

Integer to determine sample size.

sampleFraction

Fractional sample size.

size

Size of points.

shape

Symbol to use for points.

color

Color of points.

alpha

Opacity of points.

Value

Multi-panel ggplot comparing all parameters.

Examples

# \donttest{ pat <- example_pat %>% pat_filterDate(20180811,20180818) # Warnings are generated when the pat contains NA values pat_scatterPlot(pat, sampleSize = 1000)
#> Warning: Removed 271 rows containing missing values
#> Warning: Removed 256 rows containing missing values
#> Warning: Removed 271 rows containing missing values
#> Warning: Removed 271 rows containing missing values
#> Warning: Removed 271 rows containing missing values (geom_point).
#> Warning: Removed 271 rows containing non-finite values (stat_density).
#> Warning: Removed 527 rows containing missing values
#> Warning: Removed 271 rows containing missing values
#> Warning: Removed 271 rows containing missing values
#> Warning: Removed 256 rows containing missing values (geom_point).
#> Warning: Removed 527 rows containing missing values (geom_point).
#> Warning: Removed 256 rows containing non-finite values (stat_density).
#> Warning: Removed 527 rows containing missing values
#> Warning: Removed 527 rows containing missing values
#> Warning: Removed 271 rows containing missing values (geom_point).
#> Warning: Removed 271 rows containing missing values (geom_point).
#> Warning: Removed 527 rows containing missing values (geom_point).
#> Warning: Removed 271 rows containing non-finite values (stat_density).
#> Warning: Removed 271 rows containing missing values
#> Warning: Removed 271 rows containing missing values (geom_point).
#> Warning: Removed 271 rows containing missing values (geom_point).
#> Warning: Removed 527 rows containing missing values (geom_point).
#> Warning: Removed 271 rows containing missing values (geom_point).
#> Warning: Removed 271 rows containing non-finite values (stat_density).
# }