inst/shiny/examples/4_communication/mod_LinePlot.R

LinePlot <- R6::R6Class(
  "LinePlot",
  inherit = BasePlot,
  public = list(
    chart = function(data, cols) {
      return(reactive({
        aes <- self$aes(cols())
        ggplot(data = data(), aes) +
          geom_point() +
          geom_line()
      }))
    }
  )
)
Novartis/tidymodules documentation built on Feb. 27, 2023, 8:35 a.m.