matdensity | R Documentation |
Plots the density of the columns of a matrix
matdensity( object, groupFactor = NULL, type = "l", lty = 1, brewer.n = 8, brewer.name = "Dark2", ... )
object |
object an object which is inherited from an
|
groupFactor |
an optional factor variable representing which
group each column in |
type |
the type of lines to plot. Default type is line ("l"). |
lty |
the line type. Default is the solid line. |
brewer.n |
the number of colors in the palette from the RColorBrewer package. Default is 8. |
brewer.name |
the name of the palette from the RColorBrewer package. Default is "Dark2". |
... |
other arguments that can be passed to the codematplot function. |
A density plot for each column in object
library(minfi) data(flowSorted) p <- getBeta(flowSorted, offset = 100) pd <- pData(flowSorted) matdensity(object = p, groupFactor = pd$CellType, xlab = "beta values", ylab = "density")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.