Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.mpPLMIX

Plot the MAP estimates for a Bayesian mixture of Plackett-Luce models


Description

plot method for class mpPLMIX.

Usage

## S3 method for class 'mpPLMIX'
plot(x, max_scale_radar = NULL, ...)

Arguments

x

Object of class mpPLMIX returned by the mpPLMIX function.

max_scale_radar

Numeric scalar indicating the maximum value on each axis of the radar plot for the support parameter point estimates. Default is NULL meaning that the maximum of the estimated support parameters is used.

...

Further arguments passed to or from other methods (not used).

Details

By recalling the chartJSRadar function from the radarchart package and the routines of the ggplot2 package, plot.mpPLMIX produces a radar plot of the support parameters and, when G>1, a donut plot of the mixture weights and a heatmap of the component membership probabilities based on the MAP estimates. The radar chart is returned in the Viewer Pane.

Author(s)

Cristina Mollica and Luca Tardella

References

Ashton, D. and Porter, S. (2016). radarchart: Radar Chart from 'Chart.js'. R package version 0.3.1. https://CRAN.R-project.org/package=radarchart

Wickham, H. (2009). ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York.

See Also

Examples

# Not run:
data(d_carconf)
MAP <- mapPLMIX(pi_inv=d_carconf, K=ncol(d_carconf), G=3)
plot(MAP)

# Not run:
MAP_multi <- mapPLMIX_multistart(pi_inv=d_carconf, K=ncol(d_carconf), G=3, n_start=5)
plot(MAP_multi)

PLMIX

Bayesian Analysis of Finite Mixtures of Plackett-Luce Models for Partial Rankings/Orderings

v2.1.1
GPL (>= 2)
Authors
Cristina Mollica [aut, cre], Luca Tardella [aut]
Initial release
2019-09-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.