View source: R/do_TermEnrichmentPlot.R
do_TermEnrichmentPlot | R Documentation |
Display the enriched terms for a given list of genes.
do_TermEnrichmentPlot(
mat,
n.chars = 40,
n.terms = 25,
font.size = 14,
font.type = "sans",
plot.title = NULL,
plot.subtitle = NULL,
plot.caption = NULL,
use_viridis = FALSE,
viridis.palette = "G",
viridis.direction = -1,
sequential.palette = "YlGnBu",
sequential.direction = 1,
dot.scale = 8,
legend.type = "colorbar",
legend.position = "bottom",
legend.framewidth = 0.5,
legend.tickwidth = 0.5,
legend.length = 20,
legend.width = 1,
legend.framecolor = "grey50",
legend.tickcolor = "white",
number.breaks = 5,
xlab = NULL,
ylab = NULL,
na.value = "grey75",
grid.color = "grey90",
grid.type = "dashed",
plot.title.face = "bold",
plot.subtitle.face = "plain",
plot.caption.face = "italic",
axis.title.face = "bold",
axis.text.face = "plain",
axis.text.x.angle = 45,
legend.title.face = "bold",
legend.text.face = "plain"
)
mat |
|
n.chars |
|
n.terms |
|
font.size |
|
font.type |
|
plot.title , plot.subtitle , plot.caption |
|
use_viridis |
|
viridis.palette |
|
viridis.direction |
|
sequential.palette |
|
sequential.direction |
|
dot.scale |
|
legend.type |
|
legend.position |
|
legend.framewidth , legend.tickwidth |
|
legend.length , legend.width |
|
legend.framecolor |
|
legend.tickcolor |
|
number.breaks |
|
xlab , ylab |
|
na.value |
|
grid.color |
|
grid.type |
|
plot.title.face , plot.subtitle.face , plot.caption.face , axis.title.face , axis.text.face , legend.title.face , legend.text.face |
|
axis.text.x.angle |
|
A dotplot object with enriched terms.
# Check Suggests.
value <- SCpubr:::check_suggests(function_name = "do_TermEnrichmentPlot", passive = TRUE)
if (isTRUE(value)){
# Consult the full documentation in https://enblacar.github.io/SCpubr-book/
# Define your enriched terms.
enriched_terms <- readRDS(system.file("extdata/enriched_terms_example.rds", package = "SCpubr"))
# Default plot.
p <- SCpubr::do_TermEnrichmentPlot(mat = enriched_terms)
} else if (base::isFALSE(value)){
message("This function can not be used without its suggested packages.")
message("Check out which ones are needed using `SCpubr::state_dependencies()`.")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.