dm_plotProportions {DRIMSeq} | R Documentation |
Plot observed and/or estimated feature proportions.
dm_plotProportions(counts, group, md = NULL, fit_full = NULL, main = NULL, plot_type = "boxplot1", order_features = TRUE, order_samples = TRUE, group_colors = NULL, feature_colors = NULL)
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. |
md |
Data frame with additional sample information. |
fit_full |
Matrix of estimated proportions with rows corresponding to
features and columns corresponding to samples. If |
main |
Character vector with main title for the plot. If |
plot_type |
Character defining the type of the plot produced. Possible
values |
order_features |
Logical. Whether to plot the features ordered by their expression. |
order_samples |
Logical. Whether to plot the samples ordered by the
group variable. If |
group_colors |
Character vector with colors for each group. |
feature_colors |
Character vector with colors for each feature. |
ggplot
object with the observed and/or estimated with
Dirichlet-multinomial model feature ratios. Estimated proportions are
marked with diamond shapes.