A plot view for scan data, wired to a ie_file_server(): it plots the
selection-filtered aggregated scans with isoreader2::ir_plot_scans(), with
unit, species/mass, legend, zoom and PDF-download controls plus a scan-type
popover (scans are plotted one type at a time). Pair ie_scans_plot_ui() and
ie_scans_plot_server() on one id.
Arguments
- id
the module id (must match the paired
ie_metadata_ui())- file
the
ie_file_server()handle
Value
ie_scans_plot_ui() returns a UI element; ie_scans_plot_server()
returns a list with a get_code generator for the code server (see
ie_code_server())
Examples
if (interactive()) {
library(shiny)
iso <-
isoreader2::ir_examples_folder() |>
isoreader2::ir_find_isofiles() |>
isoreader2::ir_read_isofiles()
ui <- ie_type_explorer_ui("meta", ie_scans_plot_ui("scan"))
server <- function(input, output, session) {
file <- ie_file_server("files", get_isofiles = reactive(iso))
ie_scans_metadata_server("meta", file)
ie_scans_plot_server("scan", file) # reads the selection-filtered data
}
shinyApp(ui, server)
}
