heat_plot | R Documentation |
Generates a heat plot with items in their consensus ordering along the horizontal axis and ranking along the vertical axis. The color denotes posterior probability.
heat_plot(model_fit, burnin = model_fit$burnin, ...)
model_fit |
An object of type |
burnin |
A numeric value specifying the number of iterations
to discard as burn-in. Defaults to |
... |
Additional arguments passed on to other methods. In particular,
|
A ggplot object.
Other posterior quantities:
assign_cluster()
,
compute_consensus.BayesMallows()
,
compute_consensus.SMCMallows()
,
compute_consensus()
,
compute_posterior_intervals.BayesMallows()
,
compute_posterior_intervals.SMCMallows()
,
compute_posterior_intervals()
,
plot.BayesMallows()
,
plot.SMCMallows()
,
plot_elbow()
,
plot_top_k()
,
predict_top_k()
,
print.BayesMallowsMixtures()
,
print.BayesMallows()
# Setting the number of Monte Carlo samples very low for the example to run fast.
# A real application should run much longer, and have a large burnin.
model_fit <- compute_mallows(potato_visual, nmc = 500, seed = 1)
model_fit$burnin <- 100
heat_plot(model_fit)
# Items are ordered along the horizontal axis according to the ordering
# returned by compute_consensus, whose default argument is type="CP".
heat_plot(model_fit, type = "MAP")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.