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"))

Arguments

globe

An object of class globe as returned by create_globe, or an object of class globeProxy as returned by globeProxy.

palette

A vector of colors.

...

var, the variable used to scale color as well as min and max arguments.

min, max

Domain to scale color with Chroma.js.

Examples

# basic create_globe() %>% globe_pov(-21, 179) %>% globe_bars(coords(lat, long, color = mag), data = quakes) %>% scale_bars_color()