pas_palette: Color palettes for PurpleAir

View source: R/utils-plot.R

pas_paletteR Documentation

Color palettes for PurpleAir

Description

Generates color palettes for PurpleAir synoptic data with the intention of having a reproducible functional color generator.

Usage

pas_palette(pas = NULL, paletteName = "AQI", parameter = NULL, ...)

Arguments

pas

Enhanced data frame of PurpleAir synoptic data.

paletteName

A predefined color palette name. Can be of the following:

  • "AQI"

  • "humidity

  • "temperature

  • "distance"

parameter

Value to generate colors for, e.g. pm25_1hr.

...

Additional arguments passed on to leaflet::color~ functions.

Value

An object that consists of a label and color dataframe, and calculated color values from PurpleAir sensors

Note

The paletteName parameter can take the name of an RColorBrewer paeltte, e.g. "BuPu" or "Greens".


MazamaScience/AirSensor documentation built on April 28, 2023, 11:16 a.m.