oncoPrint : plot a genotype. For details and examples regarding the visualization through oncoprints, we refer to the Vignette Section 4.4.
oncoprint(
x,
excl.sort = TRUE,
samples.cluster = FALSE,
genes.cluster = FALSE,
file = NA,
ann.stage = has.stages(x),
ann.hits = TRUE,
stage.color = "YlOrRd",
hits.color = "Purples",
null.color = "lightgray",
border.color = "white",
text.cex = 1,
font.column = NA,
font.row = NA,
title = as.description(x),
sample.id = FALSE,
hide.zeroes = FALSE,
legend = TRUE,
legend.cex = 0.5,
cellwidth = NA,
cellheight = NA,
group.by.label = FALSE,
group.by.stage = FALSE,
group.samples = NA,
gene.annot = NA,
gene.annot.color = "Set1",
show.patterns = FALSE,
annotate.consolidate.events = FALSE,
txt.stats = paste(nsamples(x), " samples\n", nevents(x), " events\n", ngenes(x),
" genes\n", npatterns(x), " patterns", sep = ""),
gtable = FALSE,
...
)
A TRONCO compliant dataset
Boolean value, if TRUE sorts samples to enhance exclusivity of alterations
Boolean value, if TRUE clusters samples (columns). Default FALSE
Boolean value, if TRUE clusters genes (rows). Default FALSE
If not NA write to file
the Oncoprint, default is NA (just visualization).
Boolean value to annotate stage classification, default depends on x
Boolean value to annotate the number of events in each sample, default is TRUE
RColorbrewer palette to color stage annotations. Default is 'YlOrRd'
RColorbrewer palette to color hits annotations. Default is 'Purples'
Color for the Oncoprint cells with 0s, default is 'lightgray'
Border color for the Oncoprint, default is white' (no border)
Title and annotations cex, multiplied by font size 7
If NA, half of font.row is used
If NA, max(c(15 * exp(-0.02 * nrow(data)), 2)) is used, where data is the data visualized in the Oncoprint
Oncoprint title, default is as.name(x) - see as.name
If TRUE shows samples name (columns). Default is FALSE
If TRUE trims data - see trim
- before plot. Default is FALSE
If TRUE shows a legend for the types of events visualized. Defualt is TRUE
Default 0.5; determines legend size if legend = TRUE
Default NA, sets autoscale cell width
Default NA, sets autoscale cell height
Sort samples (rows) by event label - usefull when multiple events per gene are available
Default FALSE; sort samples by stage.
If this samples -> group map is provided, samples are grouped as of groups
and sorted according to the number of mutations per sample - usefull when data
was clustered
Genes'groups, e.g. list(RAF=c('KRAS','NRAS'), Wnt=c('APC', 'CTNNB1')). Default is NA.
Either a RColorColorbrewer palette name or a set of custom colors matching names(gene.annot)
If TRUE shows also a separate oncoprint for each pattern. Default is FALSE
Default is FALSE. If TRUE an annotation for events to consolidate is shown.
By default, shows a summary statistics for shown data (n,m, |G| and |P|)
If TRUE return the gtable object
other arguments to pass to pheatmap