Plot of a Dirichlet process mixture of gaussian distribution partition
plot_DPM(
z,
U_mu = NULL,
U_Sigma = NULL,
m,
c,
i,
alpha = "?",
U_SS = NULL,
dims2plot = 1:nrow(z),
ellipses = ifelse(length(dims2plot) < 3, TRUE, FALSE),
gg.add = list(theme())
)
data matrix d x n
with d
dimensions in rows
and n
observations in columns.
either a list or a matrix containing the current estimates of mean vectors
of length d
for each cluster. Default is NULL
in which case
U_SS
has to be provided.
either a list or an array containing the d x d
current estimates
for covariance matrix of each cluster. Default is NULL
in which case
U_SS
has to be provided.
vector of length n
containing the number of observations currently assigned to
each clusters.
allocation vector of length n
indicating which observation belongs to which
clusters.
current MCMC iteration number.
current value of the DP concentration parameter.
a list containing "mu"
and "S"
. Default is NULL
in which case
U_mu
and U_Sigma
have to be provided.
index vector, subset of 1:d
indicating which dimensions should be drawn.
Default is all of them.
a logical flag indicating whether ellipses should be drawn around clusters. Default
is TRUE
if only 2 dimensions are plotted, FALSE
otherwise.
a list of instructions to add to the ggplot2
instruction (see
gg-add
). Default is list(theme())
, which adds
nothing to the plot.
Boris Hejblum