dotplot_compareClusterResult: Dotplot for compareClusterResult object

View source: R/clusterprofiler_convenience.R

dotplot_compareClusterResultR Documentation

Dotplot for compareClusterResult object

Description

Dotplot for compareClusterResult object Provides more control over the plot than the method from clusterProfiler

Usage

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
)

Arguments

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)

Value

GGplot object if print_clust_lvls set to FALSE


genomics-kl/KLmisc documentation built on Nov. 25, 2022, 6:39 p.m.