A R html-widget for visualization of global weather conditions or other spatial vector data.
This project is based on a "localized" version of Cameron Beccario's "earth" project (https://github.com/cambecc/earth). You can run the "earth" visualization for your own data without the support of a web-server. The R package {htmlwidget} is used to wrap up the "earth" codes as a widget, and you can call it in just a few lines of R code.
devtools::install_github("Rmonsoon/Rearth")
library(Rearth)
setwd(system.file("external", package="Rearth"))
Rearth("orthographic=-30,55,1500", fn="surface-winds.json")
Then the "Rearth" widget will be opened in your brower.
Another example for ocean currents.
Rearth("orthographic=145,35,1800", mode="ocean", fn="ocean-currents.json")
The awesome earth site and the Yihui's recharts project provided the main inspiration for this work.