Plots the raw data points anotated with a given formula and adducts.
plotPL( struct, id, formula, ads = NA, rtrange = c(0, 10000), dynamicaxis = TRUE ) # S4 method for RHermesExp,numeric,character plotPL( struct, id, formula, ads = NA, rtrange = c(0, 10000), dynamicaxis = TRUE )
struct | An RHermesExp object |
---|---|
id | Number of the file to plot |
formula | Formula annotation to search for (eg. "C6H12O6") |
ads | Adducts to plot. Defaults to NA, which plots all of them by default. |
rtrange | The retention time interval to plot, in seconds (eg. c(0,1000)). Defaults to a 0-10000s interval, which will cover all points. |
dynamicaxis | Whether to use a fixed y scale for all adducts or to adapt the scale according to each adduct intensity |
An interactive plot_ly object
Other Plots:
plotCoverage()
,
plotIL()
,
plotISF()
Roger Gine
struct <- readRDS(system.file("extdata", "exampleObject.rds", package = "RHermes")) p <- plotPL(struct, 1, "C5H11NO2", c("M+H", "M+Na", "M+K"), c(80, 120))