sensor_hourlyavg_aqicolorsPlot: Sensor Hourly Averages Plot with points colored by Air...

Description Usage Arguments Value References

View source: R/sensor_hourlyavg_aqicolorsPlot.R

Description

Input dataframe of PM hourly averages with columns datetime, pm25, sensor, pm_channels_min, pm_channels_max, and a color palette with length equal to the number of sensors in data. Generates a timeline plot of hourly averages per sensor with maximum and minimum ribbons.

Usage

1
2
3
4
5
6
7
sensor_hourlyavg_aqicolorsPlot(
  sensor,
  aqi_country,
  time_facet = "none",
  point_size = 1,
  point_alpha = 0.5
)

Arguments

sensor

AirSensor object.

aqi_country

Character vector ISO 3166-1 alpha-2 country code of country who's Air Quality Index (AQI) should be used for plotting background. Options are United States ('US') or India ('IN').

time_facet

The time unit by which to facet the plot, options are 'none', 'year', or 'month'. If 'month' faceting is done by both month and year.

point_size

The size of every point on the plot.

point_alpha

An integer between 0 and 1, (inclusive), indicating the opacity of each point on the plot.

Value

A ggplot object.

References

citation("ggplot2")


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