Generates color palettes for PurpleAir synoptic data with the intention of having a reproducible functional color generator. Default palettes are available for the following parameters:

  • "pm2.5_~"

  • "humidity

  • "temperature

pas_palette(pas = NULL, parameter = "pm2.5_60minutes", paletteName = NULL, ...)

Arguments

pas

PurpleAir Synoptic pas object.

parameter

Value to generate colors for, e.g. pm2.5_1hour.

paletteName

Optional name of an RColorBrewer paeltte, e.g. "BuPu" or "Greens" to use when a default paleltte is unavailable.

...

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