mrkConsProfiles {pRoloc} | R Documentation |
A function to calculate average marker profiles.
mrkConsProfiles(object, fcol = "markers", method = mean)
object |
An instance of class |
fcol |
Feature meta-data label (fData column name) defining
the groups to be differentiated using different
colours. Default is |
method |
A |
A matrix
of dimensions number of clusters
(exluding unknowns) by number of fractions.
Laurent Gatto and Lisa M. Breckels
The mrkHClust
function to produce a
hierarchical cluster.
library("pRolocdata") data(dunkley2006) mrkConsProfiles(dunkley2006) mrkConsProfiles(dunkley2006, method = median) mm <- mrkConsProfiles(dunkley2006) ## Reorder fractions o <- order(dunkley2006$fraction) ## Plot mean organelle profiles using the ## default pRoloc colour palette. matplot(t(mm[, o]), type = "l", xlab = "Fractions", ylab = "Relative intensity", main = "Mean organelle profiles", col = getStockcol(), lwd = 2, lty = 1) ## Add a legend addLegend(markerMSnSet(dunkley2006), where = "topleft")