inst/mod-templates/simpleplot/server.R

###########################################################
# Server logic of the {{id-capital}} module
#
# Author: {{author}}
# Created: {{creation_date}}
###########################################################

# Module server function
{{id}}Module <- function(input, output, session) {

  # Initialisation ----------------------------------------------------------

  # obtain namespace
  ns <- session$ns

  # Plot --------------------------------------------------------------------

  output$plot <- renderHighchart({
    hchart(mtcars, "scatter", hcaes(x = hp, y = mpg))
  })
}
nz-stefan/shinyscaffold documentation built on May 9, 2019, 10 p.m.