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.
You can install the development version from GitHub with:
# install.packages("remotes")
remotes::install_github("paleolimbot/r2d3globe")
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)