View source: R/PLMIXfunctions.R
| plot.mpPLMIX | R Documentation |
plot method for class mpPLMIX.
## S3 method for class 'mpPLMIX'
plot(x, max_scale_radar = NULL, ...)
x |
Object of class |
max_scale_radar |
Numeric scalar indicating the maximum value on each axis of the radar plot for the support parameter point estimates. Default is |
... |
Further arguments passed to or from other methods (not used). |
By recalling the radarchart function from the fmsb 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.
Cristina Mollica and Luca Tardella
Nakazawa, M. (2024). fmsb: Functions for Medical Statistics Book with some Demographic Data. R package version 0.7.6. https://CRAN.R-project.org/package=fmsb
Wickham, H. (2009). ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York.
radarchart and ggplot
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.