plotConsProfiles: Plot marker consenses profiles.

View source: R/plotting.R

plotConsProfilesR Documentation

Plot marker consenses profiles.

Description

The function plots marker consensus profiles obtained from mrkConsProfile

Usage

plotConsProfiles(object, order = NULL, plot = TRUE)

Arguments

object

A matrix containing marker consensus profiles as output from mrkConsProfiles().

order

Order for markers (optional).

plot

A logical(1) defining whether the heatmap should be plotted. Default is TRUE.

Value

Invisibly returns ggplot2 object.

Author(s)

Tom Smith

Examples

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)

lgatto/pRoloc documentation built on Oct. 23, 2024, 12:51 a.m.