Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daranzolin/quickglobe
:earth_americas: View Country Data via a 3D, D3, Globe :earth_africa:
https://github.com/daranzolin/quickglobe
gis globe htmlwidget htmlwidgets rstats
Last synced: 3 months ago
JSON representation
:earth_americas: View Country Data via a 3D, D3, Globe :earth_africa:
- Host: GitHub
- URL: https://github.com/daranzolin/quickglobe
- Owner: daranzolin
- License: other
- Created: 2019-03-29T03:21:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T16:58:09.000Z (over 4 years ago)
- Last Synced: 2024-06-11T17:52:39.633Z (5 months ago)
- Topics: gis, globe, htmlwidget, htmlwidgets, rstats
- Language: R
- Homepage:
- Size: 2.43 MB
- Stars: 23
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-shiny-extensions - quickglobe - View country data via a 3D D3 globe. (Visualization / Maps and Spatial Data)
README
# 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](https://en.wikipedia.org/wiki/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:
``` r
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.
``` r
library(gapminder)
library(dplyr)
library(quickglobe)gapminder %>%
filter(year == 2002) %>%
quickglobe(country, gdpPercap, title = "GDP Per Capita")
```![](inst/example1.gif)
## 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`