Learn R Programming

DRIMSeq (version 1.0.2)

dm_plotProportions: Plot feature proportions

Description

Plot observed and/or estimated feature proportions.

Usage

dm_plotProportions(counts, group, pi_full = NULL, pi_null = NULL, main = NULL, plot_type = "boxplot1", order = TRUE)

Arguments

counts
Matrix with rows corresponding to features and columns corresponding to samples. Row names are used as labels on the plot.
group
Factor that groups samples into conditions.
pi_full
Matrix of estimated proportions with rows corresponding to features and columns corresponding to conditions defined by factor group. If NULL, nothing is plotted.
pi_null
Matrix of estimated proportions with rows corresponding to features and one column. If NULL, nothing is plotted.
main
Character vector with main title for the plot. If NULL, nothing is plotted.
plot_type
Character defining the type of the plot produced. Possible values "barplot", "boxplot1", "boxplot2", "lineplot", "ribbonplot".
order
Logical. Whether to plot the features ordered by their expression.

Value

ggplot object with the observed and/or estimated with Dirichlet-multinomial model feature ratios. Estimated proportions are marked with diamond shapes.