
Plot expression distributions as density curves
get_expression_density.RdShows expression distributions pooled across the selected genes, coloured by group (or sample), with optional faceting by group or sample.
Arguments
- x
A
VISTAobject.- genes
Optional character vector of genes to display. Defaults to all genes.
- sample_group
Optional character vector specifying which groups (as defined by
group_column) to include.- group_column
Optional column name in
sample_infoused as the grouping variable.- log_transform
Logical; apply log2(x + 1) transform before plotting.
- facet_scales
Facet scales argument passed to
facet_wrap()(default"free").- alpha
Numeric transparency for density fill.
- adjust
Bandwidth adjustment factor passed to
geom_density().- color_by
Either
"group"(default) or"sample"to choose fill/color variable.- facet_by
One of
"none"(default),"group", or"sample"to facet densities.