plotMID | R Documentation |
plotMID
will plot a Mass Isotopomer Distribution (MID) as calculated by CorMID.
plotMID( mid = NULL, gr = NULL, name = "unknown", contr = NULL, stackedbars = FALSE, subplot_ylim = 100, ... )
mid |
Matrix of measured ion intensities corrected using CorMID. |
gr |
Groups, a factor. |
name |
Name of metabolite. |
contr |
Contrasts. Not yet clear if useful. |
stackedbars |
Alternative plotting layout using stacked bar plot. |
subplot_ylim |
Calculate ylim individually per subplot if 0, show full range in all subplots if 100 and limit to the minimal specified number otherwise. |
... |
Further arguments to 'boxplot' or 'barplot' (depending on 'stackedbars'). |
Not yet.
NULL.
mid <- matrix(c(seq(0, 0.3, 0.1), seq(1, 0.7, -0.1)), byrow = TRUE, nrow = 2) gr <- gl(2, 2, labels = letters[1:2]) plotMID(mid = mid, gr = gr, name = "Metabolite X") plotMID(mid = mid, gr = gr, stackedbars = TRUE, las = 1, xlab = "MID", legend.text = c("x", "y")) rownames(mid) <- paste0("M", 0:1) lt <- paste0("M", 0:1) plotMID(mid = mid, gr = gr, stackedbars = TRUE, las = 1, xlab = "MID", legend.text = lt) plotMID(mid = mid[, 2, drop = FALSE], stackedbars = TRUE, col = c(3, 4)) colnames(mid) <- paste0("S", 1:4) gr2 <- gl(n = 1, k = 1, labels = "bla") plotMID(mid = mid[, 2, drop = FALSE], gr = gr2, stackedbars = TRUE, name = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.