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
synoptic_palette(synoptic = NULL, parameter = "pm2.5", paletteName = NULL, ...)PurpleAir Synoptic synoptic object.
Value to generate colors for, e.g. pm2.5.
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.
An object that consists of a label and color dataframe, and calculated color values.