inst/examples/globe/ui.R

library("shiny")
library("threejs")

shinyUI(fluidPage(
  titlePanel("Relative population of world cities from the R maps package"),
  sidebarLayout(
    sidebarPanel(
      sliderInput("N", "Number of cities to plot", value=5000, min = 100, max = 10000, step = 100),
      hr(),
      p("Use the mouse zoom to zoom in/out."),
      p("Click and drag to rotate.")
    ),
    mainPanel(
      globeOutput("globe")
    )
  )
))

Try the threejs package in your browser

Any scripts or data that you put into this service are public.

threejs documentation built on Jan. 21, 2020, 5:07 p.m.