Learn R Programming

airnow (version 0.1.1)

aqi_color: Label AQI Values

Description

aqi_color() returns the color that corresponds with the given AQI value.

aqi_descriptor() converts the given AQI value(s) into a descriptive string.

Usage

aqi_color(aqi)

aqi_descriptor(aqi)

Value

aqi_color() returns an RGB hex string

aqi_descriptor() returns a string

Arguments

aqi

An AQI value. AQI is an integer between 0 and 500, inclusive.

Examples

Run this code
aqi_color(35)
aqi_descriptor(35)

Run the code above in your browser using DataLab