Description Usage Arguments Value References
View source: R/sensor_hourlyavg_aqicolorsPlot.R
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.
1 2 3 4 5 6 7 | sensor_hourlyavg_aqicolorsPlot(
sensor,
aqi_country,
time_facet = "none",
point_size = 1,
point_alpha = 0.5
)
|
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. |
A ggplot object.
citation("ggplot2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.