View source: R/clusterprofiler_convenience.R
dotplot_compareClusterResult | R Documentation |
Dotplot for compareClusterResult object Provides more control over the plot than the method from clusterProfiler
dotplot_compareClusterResult( compareClusterResult, top_n = 5, facet_rgx = "\\S", facet_lvls = "foo", color = "p.adjust", size = "GeneRatio", xlab = "", ylab = "", fontsize = 12, title = "", cluster_lvls = 1:length(levels(droplevels(as_tibble(compareClusterResult)$Cluster))), print_clust_lvls = FALSE )
compareClusterResult |
compareClusterResult object |
top_n |
numeric value for how many top gene sets to keep from each cluster |
facet_rgx |
character value for regex to str_extract from the 'Cluster' column for facetting |
facet_lvls |
character value for levels for facetting variable. Should correspond to 'facet_rgx' |
color |
character for variable for dot color aesthetic |
size |
character for variable for dot size aesthetic |
xlab |
x axis title |
ylab |
y axis title |
fontsize |
font size |
title |
plot title |
cluster_lvls |
numeric vector to rearrange the order of the cluster levels. Use 'print_clust_lvls' to figure out the original order of the cluster levels. |
print_clust_lvls |
Don't plot anything. Just print the cluster levels after dropping those with no results (significant results) |
GGplot object if print_clust_lvls set to FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.