| stageParameters {NGLVieweR} | R Documentation | 
Set stage parameters
Description
Set stage parameters.
Usage
stageParameters(NGLVieweR, ...)
Arguments
| NGLVieweR | A NGLVieweR object. | 
| ... | Options controlling the stage. Most common options are  | 
Value
Returns list of stage parameters to NGLVieweR htmlwidgets object.
See Also
-  NGLVieweR_example()See example "basic".
Examples
NGLVieweR("7CID") %>%
 stageParameters(backgroundColor = "white", zoomSpeed = 1) %>%
 addRepresentation("cartoon", param = list(name = "cartoon", colorScheme="residueindex"))
if (interactive()) {
  library(shiny)
  ui <- fluidPage(NGLVieweROutput("structure"))
  server <- function(input, output) {
    output$structure <- renderNGLVieweR({
      NGLVieweR("7CID") %>%
        stageParameters(backgroundColor = "white", zoomSpeed = 1) %>%
        addRepresentation("cartoon",
          param = list(name = "cartoon", colorScheme = "residueindex")
        )
    })
  }
  shinyApp(ui, server)
}
[Package NGLVieweR version 1.3.1 Index]