library(gior) library(dplyr) library(htmltools) data("country_data") globe <- country_data %>% gior() %>% g_data(from, to, value) %>% g_style("gorgeousDream")
h1(code("gior"), class = "text-center") div( class = "row", div( class = "col-md-4", p( "An htmlwidget for", tags$a( "gio.js", href = "http://giojs.org/", target = "_blank" ) ), tags$a( "Shiny demo", class = "btn btn-default", href = "https://shiny.john-coene.com/gior-shiny/" ) ), div( class = "col-md-8", globe ) )
A Declarative 3D Globe Data Visualization Library built with Three.js
You can install gior
with devtools
devtools::install_github("JohnCoene/gior")
or remotes
remotes::install_github("JohnCoene/gior")
data("country_data") country_data %>% gior() %>% g_data(from, to, value)
gior
supports continents:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.