scaling_color.Rd
Pass a numeric value as color and use this function
scale_bars_color(globe, palette = c("#2c7fb8", "#7fcdbb", "#edf8b1"), ...) scale_arc_color(globe, palette = c("#2c7fb8", "#7fcdbb", "#edf8b1")) scale_labels_color(globe, palette = c("#2c7fb8", "#7fcdbb", "#edf8b1")) scale_choropleth_cap_color(globe, palette = c("#2c7fb8", "#7fcdbb", "#edf8b1")) scale_hex_cap_color( globe, palette = c("#2c7fb8", "#7fcdbb", "#edf8b1"), min = NULL, max = NULL ) scale_hex_side_color( globe, palette = c("#2c7fb8", "#7fcdbb", "#edf8b1"), min = NULL, max = NULL ) scale_choropleth_side_color( globe, palette = c("#2c7fb8", "#7fcdbb", "#edf8b1") )
globe | An object of class |
---|---|
palette | A vector of colors. |
... |
|
min, max | Domain to scale color with Chroma.js. |
# basic create_globe() %>% globe_pov(-21, 179) %>% globe_bars(coords(lat, long, color = mag), data = quakes) %>% scale_bars_color()