View source: R/analysis_and_plot.R
mitoTreeHeatmap | R Documentation |
Given a matrix of scores, it returns a circular heatmap of the mitochondrial gene sets (leaf of the database tree) or gene set groups (section of the database tree).
mitoTreeHeatmap(
data,
database = "MitoCarta",
sections = FALSE,
samples = NULL,
labelNames = "sections",
...
)
data |
matrix or data.frame with samples in columns and mitochondrial gene sets in rows. |
database |
character string saying the database used for the analysis. Either one of "MitoCarta", "Reactome", "GO-CC" and "GO-BP". |
sections |
logical. Either to keep the aggregated gene set categories or the specific gene sets. Default is FALSE. |
samples |
character vector with the names of samples to be plotted. Otherwise all samples are plotted. |
labelNames |
character string that says to plot either the names of "sections" or "leaves". |
... |
other arguments passed on to the |
A ggplot
object.
MClist <- getGeneSets()
n <- length(names(MClist)) * 5
rmatrix <- matrix(rnorm(n, 0), ncol = 5)
rownames(rmatrix) <- names(MClist)
colnames(rmatrix) <- paste0("Sample_", seq_len(5))
mitoTreeHeatmap(data = rmatrix, database = "MitoCarta")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.