View source: R/perspective-shiny.R
| renderPerspective | R Documentation |
Server-side rendering function for the Perspective widget.
renderPerspective(expr, env = parent.frame(), quoted = FALSE)
expr |
An expression that returns a |
env |
The environment in which to evaluate |
quoted |
Logical; is |
A Shiny render function.
if (interactive()) {
server <- function(input, output) {
output$viewer <- renderPerspective({
perspective(mtcars, group_by = "cyl", plugin = "Y Bar")
})
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.