plotDist {pRoloc} | R Documentation |
Produces a line plot showing the feature abundances across the fractions.
plotDist(object, markers, mcol = "steelblue", pcol = getUnknowncol(), alpha = 0.3, type = "b", lty = 1, fractions = sampleNames(object), ylab = "Intensity", xlab = "Fractions", ylim, ...)
object |
An instance of class |
markers |
A |
mcol |
A |
pcol |
A |
alpha |
A numeric defining the alpha channel (transparency)
of the points, where |
type |
Character string defining the type of lines. For
example |
lty |
Vector of line types for the marker profiles. Default
is 1 (solid). See |
fractions |
A |
ylab |
y-axis label. Default is "Intensity". |
xlab |
x-axis label. Default is "Fractions". |
ylim |
A numeric vector of length 2, giving the y coordinates range. |
... |
Additional parameters passed to |
Used for its side effect of producing a feature distribution plot. Invisibly returns the data matrix.
Laurent Gatto
library("pRolocdata") data(tan2009r1) j <- which(fData(tan2009r1)$markers == "mitochondrion") i <- which(fData(tan2009r1)$PLSDA == "mitochondrion") plotDist(tan2009r1[i, ],markers = featureNames(tan2009r1)[j]) plotDist(tan2009r1[i, ],markers = featureNames(tan2009r1)[j], fractions = "Fractions")