Style a data.frame prior to converting to geojson.
style_geojson(
input,
var = NULL,
var_col = NULL,
var_sym = NULL,
var_size = NULL,
color = NULL,
symbol = NULL,
size = NULL
)
A data.frame
A single variable to map colors, symbols, and/or sizes to.
The variable to map colors to.
The variable to map symbols to.
The variable to map size to.
Valid RGB hex color
An icon ID from the Maki project https://labs.mapbox.com/maki-icons/ or a single alphanumeric character (a-z or 0-9).
One of 'small', 'medium', or 'large'