# \donttest{
model_description_df <- data.frame(
"Depth" = rep(c(100, 500, 1000), 3),
"Width" = c(rep(50, 3), rep(100, 3), rep(200, 3))
)
n_models <- nrow(model_description_df)
cms <- vector("list", n_models)
for (ii in seq(1, n_models)) {
cms[[ii]] <- createSimilarityMat(mcmc[[ii]]$allocations)
}
plot_df <- prepCMssForGGplot(cms, model_description_df)
plot_df |>
ggplot2::ggplot(ggplot2::aes(x = x, y = y, fill = Entry)) +
ggplot2::geom_tile() +
ggplot2::facet_grid(Depth ~ Width, labeller = label_both()) +
ggplot2::scale_fill_gradient(low = "#FFFFFF", high = "#146EB4")
# }
Run the code above in your browser using DataLab