Plot a histogram of successes over trials, coloured by clustering assignments and with a facet for each sample.

plot_1D(x, colors = NA)

Arguments

x

An object of class vb_bmm.

colors

Optional vector of colors, default (NA) are ggplot colors.

Value

A ggplot object

Examples

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).