View source: R/autoplot_hidalgo.R
autoplot.Hidalgo | R Documentation |
Hidalgo
functionUse this method without the .Hidalgo
suffix.
It produces several plots to explore the output of
the Hidalgo
model.
## S3 method for class 'Hidalgo'
autoplot(
object,
type = c("raw_chains", "point_estimates", "class_plot", "clustering"),
class_plot_type = c("histogram", "density", "boxplot", "violin"),
class = NULL,
psm = NULL,
clust = NULL,
title = NULL,
...
)
object |
object of class |
type |
character that indicates the requested type of plot. It can be:
|
class_plot_type |
if |
class |
factor variable used to stratify observations according to
their the |
psm |
posterior similarity matrix containing the posterior probability of coclustering. |
clust |
vector containing the cluster membership labels. |
title |
character string used as title of the plot. |
... |
other arguments passed to specific methods. |
a ggplot2
object produced by the function
according to the type
chosen.
More precisely, if
method = "raw_chains"
The functions produces the traceplots
of the parameters d_k
, for k=1...K
.
The ergodic means for all the chains are superimposed. The K
chains
that are plotted are not post-processed.
Ergo, they are subjected to label switching;
method = "point_estimates"
The function returns two
scatterplots displaying
the posterior mean and median id
for each observation, after that the
MCMC has been postprocessed to handle label switching;
method = "class_plot"
The function returns a plot that can be
used to visually assess the relationship between the posterior id
estimates and an external, categorical variable. The type of plot varies
according to the specification of class_plot_type
, and it can be
either a set of boxplots or violin plots or a collection of overlapping
densities or histograms;
method = "clustering"
The function displays the posterior similarity matrix, to allow the study of the clustering structure present in the data estimated via the mixture model. Rows and columns can be stratified by an exogenous class and/or a clustering structure.
Hidalgo
Other autoplot methods:
autoplot.gride_bayes()
,
autoplot.twonn_bayes()
,
autoplot.twonn_linfit()
,
autoplot.twonn_mle()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.