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)
  })
})
bwlewis/rthreejs documentation built on Aug. 22, 2022, 1:30 p.m.