mbqnBoxplot | R Documentation |
Create a box-and-whisker plot of a data matrix and plot selected features and/or additional user-defined data on top of it.
mbqnBoxplot(mtx, irow = NULL, vals = NULL, add.leg = TRUE, ...)
mtx |
a matrix or data frame. |
irow |
index or vector of row indices of matrix features to plot on top of the boxplot. |
vals |
numeric, array, matrix, or data frame of features with length
|
add.leg |
add legend to plot. |
... |
additional arguments passed to the plot functions, e.g. xlab, ylab, main, ylim, type, las. |
This function calls graphics::boxplot
.
Groups are represent by matrix columns. Selected rows/features or
user-defined arrays are plot on top of the box plot. Missing values are
ignored.
Figure.
Ariane Schad
Brombacher, E., Schad, A., Kreutz, C. (2020). Tail-Robust Quantile Normalization. BioRxiv.
## Create boxplot of quantile normalized data matrix and plot ## feature from median balanced quantile normalization on top of it. X <- matrix(c(5,2,3,NA,4,1,4,2,3,4,6,NA,1,3,1),ncol=3) # Create data matrix # Quantile normalization qn.dat <- mbqn(x=X,FUN = NULL ,na.rm = TRUE) # Median balanced quantile normalization mbqn.dat <- mbqn(x=X,FUN = median ,na.rm = TRUE) ## Create boxplot: plot.new() mbqnBoxplot(qn.dat,irow = 1, vals = mbqn.dat[1,], type = "b")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.