Description Usage Arguments Value See Also Examples
Set stage parameters.
1 |
NGLVieweR |
A NGLVieweR object. |
... |
Options controlling the stage. Most common options are |
Returns list of stage parameters to NGLVieweR
htmlwidgets
object.
updateStage()
NGLVieweR_example()
See example "basic".
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.