
Pie chart of DEG counts (Up/Down) across comparisons
Source:R/bioccheck_roxygen_fixes.R, R/viz_related.R
get_deg_count_pieplot.RdPie chart of DEG counts (Up/Down) across comparisons
Usage
get_deg_count_pieplot(
x,
sample_comparisons = NULL,
label_type = c("both", "count", "percent", "none"),
label_digits = 1,
base_size = 12,
colors = c(Up = "red4", Down = "blue4"),
show_other = FALSE,
other_color = "grey70",
text_color = "black",
facet_by = c("comparison", "none"),
ncol = NULL,
label = NULL
)Arguments
- x
A
VISTAobject containing DEG summaries.- sample_comparisons
Optional character vector of comparison names to display.
- label_type
Label content:
"both","count","percent"or"none".- label_digits
Integer number of decimals used for percentage labels.
- base_size
Numeric base font size for the plot.
- colors
Named vector giving fill colors for
"Up"and"Down"slices. Whenshow_other = TRUE, an"Other"entry may also be supplied.- show_other
Logical; when
TRUE, include non-DE genes as an"Other"slice usingother_colorunless overridden incolors.- other_color
Fill colour used for the
"Other"slice whenshow_other = TRUEandcolorsdoes not include"Other".- text_color
Colour used for pie label text.
- facet_by
Either
"comparison"(default) to draw one pie per comparison, or"none"for a single pie.- ncol
Optional number of columns when faceting.
- label
Deprecated; use
label_type.TRUE/FALSEmap to"both"/"none".
Examples
v <- example_vista()
p <- get_deg_count_pieplot(v)
print(p)