View source: R/Module_SpecModule2.R
SpecModule2 | R Documentation |
Module for interactive mass spectrum view
SpecModule2( input, output, session, values, reactives = reactive({ list(scantable = NULL, type = "ms2", spectrum = NULL, specinfo = NULL, xrange = NULL, markermz = NULL) }) ) SpecModule2UI(id)
input |
arguments necessary for use with
|
output |
arguments necessary for use with
|
session |
arguments necessary for use with
|
values |
a |
reactives |
a list, wrapped in a |
id |
id to be used to define a namespace via |
Can either be a list with entries scanTable
and type
,
specifying inputs for the getScanInfo, OR
a list with entries spectrum
and specinfo
.
If the server module for this Module returns something,
it is described in Details
.
SpecModule2
: Server module, to be called with callModule()
SpecModule2UI
: UI function for SpecModule2
values
for a description of the values
object
## Not run: library(shiny) ui <- SpecModule2UI("examplemodule") server <- function(input, output) { MseekMinimalServer(diagnostics = F, data = F, tables = F) ExampleModule <- callModule(SpecModule2, "examplemodule", values, reactives = reactive({ list(spectrum = data.frame(mz = c(100,200,250,300,400), intensity = c(1000,2000,3000,1000,3000))) })) } # Create Shiny app ---- shinyApp(ui, server) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.