aqi_healthconcern: Compare AQI category percentage by CBSA

Description Usage Arguments Author(s) Examples

Description

There are six categories of AQI. Each category corresponds to a different level of health concern. This function plots percentage of each category by CBSA. It can be used to compare AQI among different CBSAs.

Usage

1
2
3
aqi_healthconcern(data = annual_aqi, cbsa, category = c("Good", "Moderate",
  "UnhealthyForSensitiveGroup", "Unhealthy", "VeryUnhealthy", "Hazardous"),
  year = c(2000:2015), plot = "line")

Arguments

data

Dataset to use for plot. The default dataset is annual_aqi.

cbsa

A vector of CBSA. You can input the CBSAs you want to compare.

category

A character vector of health concern category by AQI. There are six categories. Input category from "Good", "Moderate", "UnhealthyForSensitiveGroup", "Unhealthy", "VeryUnhealthy" and "Hazardous". Default value includes all six categories.

year

A numeric vector. Default value is c(2000:2015).

plot

A character for type of plot. The value is either "line" or "bar". Default value is "line". You can use it to decide which kind of plot you want to get. When do analysis in some specific year, you should choose "bar".

Author(s)

Annie Yang

Examples

1
2
aqi_healthconcern(annual_aqi,c("Aberdeen, SD","Adrian, MI"),
category =c("Good","Moderate","Unhealthy"),year=c(2000,2008,2015),plot="bar")

PHP2560-Statistical-Programming-R/r-package-beautiful-day documentation built on May 30, 2019, 3:50 p.m.