Skip to contents

A wrapper around renderPlot, but with themes automatically set via par; only supports base plots. For ggplot2, please manually call get_theme to get the theme.

Usage

renderPlot2(expr, ..., env = parent.frame(), quoted = FALSE)

Arguments

expr, env, quoted, ...

passed to renderPlot

Value

See renderPlot

Examples


server <- function(input, output, session) {

  output$plot <- renderPlot2({
    plot(rnorm(100))
  })

}