Description Usage Arguments Value Examples
View source: R/plot_pathway_dendrogram.R
plot_pathway_dendrogram() plots the results of output from the fgsea() function.
1 2 3 | plot_pathway_dendrogram(path_res_df, cluster = "col",
clustering_distance = "euclidean", clustering_method = "complete",
flip_dendro = F)
|
path_res_df |
dataframe should contain columns "CellType", "pathway", "NES";can be output from the fgsea() function |
cluster |
what to cluster; possible values are "pathway" or "CellType" |
clustering_distance |
distance measure used in clustering. Possible values are "correlation", "euclidean", "maximum", "manhattan", "canberra", "binary", or "minkowski" (defined in dist() function.) |
clustering_method |
clustering method used for clustering. Accepts the same values as hclust: "ward.D", "ward.D2", "single", "complete", "average" (=UPGMA), "mcquitty" (=WPGMA), "median" (=WPGMC) or "centroid" (=UPGMC). |
flip_dendro |
logical; if dendrogram should be flipped |
A ggplot2 object
1 | plot_pathway_dendrogram(path_res_df=my_pathway_enrichment)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.