plot.moc
plots the fitted and observed values of a fitted
moc
model.
profilesplot
is a generic method to plot subject profiles of
fitted model.
profilesplot.moc
plots the subject response profiles (variables
or posterior) of each subject of a fitted moc
object with
colors that are a mix of group colors (see mix.colors.moc
).
plot.residuals.moc
nicely plots and object of type
residuals.moc
.
entropyplot
is a generic method to plot subject entropy.
entropyplot.moc
plots the prior and posterior subject entropy
(standardized or not) corresponding to a moc
model. The subject
entropy are first sorted by prior then by posterior within prior.
# S3 method for moc
plot(x, against = 1:x$nvar,main = "",
xlab = "", ylab = "", prob.legend = TRUE, scale = FALSE,
group.colors = rainbow(x$groups), …)# S3 method for residuals.moc
plot(x, against = "Index", groups = 1:dim(x)[3],
sunflower = FALSE, group.colors = NULL, …)
profilesplot(x, …)
# S3 method for moc
profilesplot(x, against = 1:x$nvar, main = NULL,
xlab = "", ylab = "", col.legend = TRUE,
scale = FALSE, group.colors = rainbow(x$groups),
type = "subject", …)
entropyplot(x, …)
# S3 method for moc
entropyplot(x, main = NULL, std = TRUE, lwd = 1.5,
col = c("red3","green3","gray95"),
shade.gr.col = gray(1-0.5*(0:(x$groups-1))/(x$groups-1)),
legend = TRUE, …)
Objects of class moc
or residuals.moc
.
x axis for plotting the profiles. A variable against which to plot the residuals or the strings
The default, use the index of the residuals array.
Use the column (variable) index of the response matrix.
Use the row (subject) index of the response matrix.
Arguments to be passed to plot
,
matplot
.
Add mixture probabilities, color legend and lines to the plot.
Specify if a sunflower or standard plot is requested.
Specify if each variable should be scaled.(see scale
)
Specify for which groups residuals.moc
plot is
requested.
A string giving the type of profiles to plot
(default) for subject profiles.
for pairs plot of response variables.
for pairs of posterior probabilities.
If TRUE standardized entropy are plotted.
entropyplot.moc
will plot the prior and posterior
entropy with lines of width \(lwd\) and colors col[1:2]
, the
third color is used for the area between the two curves.
entropyplot.moc
will mix these colors with
mix.colors.moc
and paint the area between the two curves
accordingly.
The groups base colors.
plot.moc
invisibly returns a list
containing the
plotted values and scaling information.
plot.residuals.moc
invisibly returns the plotted residual values.