Rescale altitude to a more appropriate range, where 0 if flat and 1 is the globe radius.

scale_bars_altitude(globe, min = 0, max = 0.5)

scale_arcs_altitude(globe, min = 0, max = 0.5)

scale_labels_altitude(globe, min = 0, max = 0.5)

scale_choropleth_altitude(globe, min = 0, max = 0.5)

scale_hex_altitude(globe, min = 0, max = 0.5)

Arguments

globe

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

min, max

Target minimum and maximum values of altitude.

Examples

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