| ie_di_plot | R Documentation |
A plot view for dual inlet cycle data, wired to a ie_file_server(): it plots the
selection-filtered aggregated cycles with
isoreader2::ir_plot_dual_inlet(), with unit, species/mass, legend, zoom and
PDF-download controls. Pair ie_di_plot_ui() and ie_di_plot_server() on one id.
ie_di_plot_ui(id)
ie_di_plot_server(id, file)
id |
the module id (must match the paired |
file |
the |
ie_di_plot_ui() returns a UI element; ie_di_plot_server() returns a
list with a get_code generator for the code server (see ie_code_server())
ie_file_server(), ie_di_metadata_server()
if (interactive()) {
library(shiny)
iso <-
isoreader2::ir_examples_folder() |>
isoreader2::ir_find_isofiles() |>
isoreader2::ir_read_isofiles()
ui <- ie_type_explorer_ui("meta", ie_di_plot_ui("di"))
server <- function(input, output, session) {
file <- ie_file_server("files", get_isofiles = reactive(iso))
ie_di_metadata_server("meta", file)
ie_di_plot_server("di", file)
}
shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.