Giter Site home page Giter Site logo

quickglobe's Introduction

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

quickglobe's People

Contributors

daranzolin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

han-tun yangxhcaf

quickglobe's Issues

quickglobe doesn't work in Rmarkdown :(

Error:

Could not determine mime type for `/Library/Frameworks/R.framework/Versions/4.0/Resources/library/quickglobe/htmlwidgets/lib/shapes/world110m.json'
Error: pandoc document conversion failed with error 63
Execution halted

Improve Readme

Hi David,
tried your package and it looks great!
Compared to your code in the readme I had to change:
devtools::install_github("daranzolin/quickglobe")
and add
library(tidyverse)
in order to make it work from a clean R Skript.
Maybe you want to update this for future new users.
Cheers! Jens

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.