inst/examples/graph/server.R

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

data("LeMis")

shinyServer(function(input, output)
{
  output$graph <- renderScatterplotThree({
    v <- input$select
    if (v == "Labels") v <- V(LeMis)$label
    graphjs(LeMis, vertex.shape=v)
  })
})

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.