The function plots marker consensus profiles obtained from mrkConsProfile
plotConsProfiles(object, order = NULL, plot = TRUE)
A matrix
containing marker consensus profiles as output from
mrkConsProfiles()
.
Order for markers (optional).
A logical(1)
defining whether the heatmap should be plotted.
Default is TRUE
.
Invisibly returns ggplot2
object.
library("pRolocdata")
data(E14TG2aS1)
hc <- mrkHClust(E14TG2aS1, plot = FALSE)
mm <- getMarkerClasses(E14TG2aS1)
ord <- levels(factor(mm))[order.dendrogram(hc)]
fmat <- mrkConsProfiles(E14TG2aS1)
plotConsProfiles(fmat, order = ord)