globe4r icon indicating copy to clipboard operation
globe4r copied to clipboard

🌎 Interactive globe visualisations

Travis build
status Lifecycle:
maturing AppVeyor build
status

globe4r

Interactive globes for R via globe.gl.

Visit the website for more details.

  1. bars
  2. arcs
  3. polygons
  4. points
  5. hex bin

Visit the website for the full list of functions

Installation

You can install the globe4r from Github:

# install.packages("remotes")
remotes::install_github("JohnCoene/globe4r")

Example

library(globe4r)

data("population") # sample data

create_globe() %>% # initialise
  globe_bars(
    coords(lat, lon, altitude = value, color = value),
    data = population
  ) %>% 
  scale_bars_altitude() %>% 
  scale_bars_color()