Skip to content

🌎 View Country Data via a 3D, D3, Globe 🌍

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

daranzolin/quickglobe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quickglobe

Spin's the name, and rocking round the globe's the game!

This package was mostly an excuse to sync up some #rstats, GIS, and D3 tricks.

I really wanted to name this package spintheglobe in homage to National Geographic's Really Wild Animals docs, but the internet has a severe deficit of Spin content.

Installation

quickglobe is not on CRAN, but uou can install the development version from GitHub via:

devtools::install_packages_github("daranzolin/quickglobe")

Spinning the Globe

quickglobe renders an interactive, 3D globe. It will attempt to match a country 'identifier' (e.g. name, iso code) within the function, so there's no need to worry about geometry or other spatial concerns. Your identifier strings, however, have to be relatively clean.

library(gapminder)
library(dplyr)
library(quickglobe)

gapminder %>% 
  filter(year == 2002) %>%
  quickglobe(country, gdpPercap, title = "GDP Per Capita")

Styling the Globe

Use different palettes, adjust the title font family, choose the number of legend cells, and format the legend ticks in qg_style

About

🌎 View Country Data via a 3D, D3, Globe 🌍

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published