| plot_chrom | R Documentation |
This function plots chromatograms for selected transitions per sample.
plot_chrom(
chrom_res,
ncol = 2,
transitions_ids = NULL,
sample_id,
integrated = FALSE,
show_RT = FALSE,
smoothed = FALSE
)
chrom_res |
ChromRes object |
ncol |
Number of columns for facet_wrap. If 0, the chromatograms are overlayed in a single plot. |
transitions_ids |
Vector of transition IDs to plot. If NULL, all transitions are plotted. |
sample_id |
Sample ID to plot. |
integrated |
Boolean to show integrated area overlayed |
show_RT |
Boolean to show RT values |
smoothed |
Boolean to show smoothed chromatogram |
## Not run:
path <- system.file("extdata", "waters_raw_ex", package="PKbioanalysis")
main <- read_chrom(path, method = 1)
plot_chrom(main, ncol = 2, transitions_ids = c(18,19,20), sample_id = 3)
plot_chrom(main, ncol = 3, transitions_ids = c(18,19,20), sample_id = 3)
plot_chrom(main, ncol = 1, transitions_ids = c(18,19,20), sample_id = 3)
plot_chrom(main, ncol = NULL, transitions_ids = c(18,19,20), sample_id = 3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.