Plot a histogram of successes over trials, coloured by clustering assignments and with a facet for each sample.
plot_1D(x, colors = NA)
An object of class vb_bmm.
Optional vector of colors, default (NA
) are ggplot
colors.
A ggplot object
data(fit_mvbmm_example)
plot_1D(fit_mvbmm_example)
#> Using cluster.Binomial as id variables
#> Warning: Removed 81 rows containing non-finite values (stat_bin).
#> Warning: Removed 12 rows containing missing values (geom_bar).