
DEG Venn diagram
get_deg_venn_diagram.RdVisualizes overlaps between DEG sets for two to four comparisons.
Usage
get_deg_venn_diagram(
x,
sample_comparisons,
regulation = "Up",
palette = "Set 2",
auto_scale = FALSE,
show_percentage = TRUE,
...
)Arguments
- x
A
VISTAobject.- sample_comparisons
Character vector of 2–4 comparison names to include in the Venn diagram.
- regulation
One of
"Up","Down","Both", or"All"selecting which genes to include.- palette
Qualitative palette name passed to
colorspace::qualitative_hcl()for fill colors.- auto_scale
Logical; pass through to
ggvenn::ggvenn()to scale circles by size.- show_percentage
Logical; request percentage labels from
ggvenn::ggvenn().- ...
Additional arguments forwarded to
ggvenn::ggvenn().
Examples
v <- example_vista()
comps <- names(comparisons(v))
if (length(comps) >= 2) {
p <- get_deg_venn_diagram(v, sample_comparisons = comps[1:2])
print(p)
}