View source: R/do_WafflePlot.R
do_WafflePlot | R Documentation |
Display the enriched terms for a given list of genes.
do_WafflePlot(
sample,
group.by,
waffle.size = 2,
flip = TRUE,
colors.use = NULL,
na.value = "grey75",
font.size = 14,
font.type = "sans",
plot.title = NULL,
plot.subtitle = NULL,
plot.caption = NULL,
legend.title = NULL,
legend.ncol = NULL,
legend.nrow = NULL,
legend.byrow = FALSE,
legend.position = "bottom",
plot.title.face = "bold",
plot.subtitle.face = "plain",
plot.caption.face = "italic",
axis.title.face = "bold",
axis.text.face = "plain",
legend.title.face = "bold",
legend.text.face = "plain",
strip.text.face = "bold"
)
sample |
|
group.by |
|
waffle.size |
|
flip |
|
colors.use |
|
na.value |
|
font.size |
|
font.type |
|
plot.title , plot.subtitle , plot.caption |
|
legend.title |
|
legend.ncol |
|
legend.nrow |
|
legend.byrow |
|
legend.position |
|
plot.title.face , plot.subtitle.face , plot.caption.face , axis.title.face , axis.text.face , legend.title.face , legend.text.face |
|
strip.text.face |
|
A ggplot2 object with a Waffle Plot.
# Check Suggests.
value <- SCpubr:::check_suggests(function_name = "do_WafflePlot", passive = TRUE)
if (isTRUE(value)){
# Consult the full documentation in https://enblacar.github.io/SCpubr-book/
# Define your Seurat object.
sample <- readRDS(system.file("extdata/seurat_dataset_example.rds", package = "SCpubr"))
# Basic Waffle plot.
p <- SCpubr::do_WafflePlot(sample = sample,
group.by = "seurat_clusters")
} 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.