day_of_week_aqiBar: Visualize the proportion of sensor measurements that fall...

Description Usage Arguments Value

View source: R/day_of_week_aqiBar.R

Description

Generate a bar chart of AQI measurements for a sensor.

Usage

1
day_of_week_aqiBar(sensor, aqi_country, day = "all", position = "stack")

Arguments

sensor

An AirSensor object.

aqi_country

The country who's Air Quality Index (AQI) should be used for plotting, as an ISO 2 letter country code. Current options are "US" and "IN".

day

Character vector containing days of the week to show in plot (all lowercase), or 'all' to use all days of the week.

position

Whether to use stacked bar chart showing counts or filled bar chart showing normalized proportions.

Value

a ggplot object.


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