paleolimbot / r2d3globe

Intractive Globes for 'Rmarkdown' and 'shiny' using 'D3'

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

r2d3globe

The goal of r2d3globe is to provide quick “pickers” and “showers” for global-scale geographic data sets using d3 and d3-geo. Right now it doesn’t actually work so you might want to just move along and check back later.

Installation

You can install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("paleolimbot/r2d3globe")

Example

This is a basic example which shows you how to solve a common problem:

library(r2d3globe)
library(shiny)
ui <- fluidPage(
    titlePanel("Hello World! (like, literally)"),
    globeSvgInput("globeInput"),
    textOutput("textOut")
)

server <- function(input, output) {

    output$textOut <- renderText({
       paste0("Input value: ", input$bins)
    })
}

shinyApp(ui = ui, server = server)

About

Intractive Globes for 'Rmarkdown' and 'shiny' using 'D3'

License:Other


Languages

Language:HTML 39.3%Language:JavaScript 29.1%Language:R 27.5%Language:CSS 4.1%