RatioPlotModule: RatioPlotModule

View source: R/Module_RatioPlotModule.R

RatioPlotModuleR Documentation

RatioPlotModule

Description

This is a ratio plotter

Usage

RatioPlotModule(input, output, session, values)

RatioPlotModuleUI(id)

Arguments

input

arguments necessary for use with callModule()

output

arguments necessary for use with callModule()

session

arguments necessary for use with callModule()

values

a reactiveValues object that in effect gives read and write access to external objects

id

id to be used to define a namespace via NS() (must match id in callModule for the server Module)

Value

This module returns nothing

Functions

  • RatioPlotModule: Server logic

  • RatioPlotModuleUI: UI elements

See Also

values for a description of the values object

Examples

## Not run: 
MseekExamplePreload()

tab1 <- FTNormalize(tab1)

ui <- MseekMinimalUI(
  fluidPage(
    fluidRow(
      RatioPlotModuleUI("examplewidget")),
    fluidRow(
      MainTableModuleUI("mtb"))
  ),
  diagnostics = T)

server <- function(input, output) {
  MseekMinimalServer(diagnostics = T, data = F, tables = T)
  
  MainTable <- callModule(MainTableModule, "mtb",
                          values = reactiveValues(featureTables = featureTables,
                                                 GlobalOpts = GlobalOpts),
                         static = list(perpage = 100,
                                        height = 300,
                                        readOnly = T,
                                        contextMenu = T,
                                        fixedColumnsLeft = 1,
                                        invertReadOnly = NULL,
                                        controls = T,
                                        format = list(col = NULL,
                                                      format = NULL)))
  
  ExampleWidget <- callModule(RatioPlotModule, "examplewidget",
                              values = values)
  
  
}

# Create Shiny app ----
shinyApp(ui, server)

## End(Not run)


mjhelf/Metaboseek documentation built on April 23, 2022, 12:09 p.m.