View source: R/CommPath-visualization.R
pathHeatmap | R Documentation |
To plot a heatmap of those differentially enriched pathways for each cluster
pathHeatmap(
object,
acti.path.dat = NULL,
top.n.pathway = 10,
path.order = "P.val.adj",
col = NULL,
cell.aver = FALSE,
cell.label.size = NULL,
cell.label.angle = 45,
pathway.label.size = NULL,
scale = TRUE,
truncation = 1.5,
show.legend = TRUE
)
object |
CommPath object |
acti.path.dat |
Data frame of differential enrichment test result from diffAllPath; if NULL, diffAllPath would be run to get the acti.path.dat |
top.n.pathway |
Show the heatmap of top n most significant pathways |
path.order |
Sort criteria used to select the top n pathways, either 'P.val' or 'P.val.adj', which represent the original and adjusted p values, or 'diff' which represents the mean (in t test) or median (in wilcox test) difference |
col |
Vector of colors used to generate a series of gradient colors to show the enrichment score of pathways; provide a vector containing at least two colors |
cell.aver |
Whether to display averaged pathway enrichment scores among cells from the same clusters or to display scores for all cells; default is FALSE, which means to display scores for all cells |
cell.label.size |
Text size of the label of cell types |
cell.label.angle |
Rotation angle of the label of cell types |
pathway.label.size |
Text size of the label of pathways |
scale |
Whether to scale the enrichment sorces matrix among cells or not; default is TRUE |
truncation |
Truncation fold value; scores > (the third quartiles + truncation * interquartile range) and scores < (the first quartiles - truncation * interquartile range) will be adjusted; either a value to indicate the specific truncation value or 'none' to indicate no truncation; default is 1.5 |
show.legend |
Whether to show the legend or not; default is FALSE |
Heatmap plot showing the top enriched patways in each cluster
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.