plot.moc {moc} | R Documentation |
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 (variables or
posterior) profiles of each subject of fitted moc object with
colors that are a mix of group colors according to posterior
probability.
plot.residuals.moc
nicely plots and object of type
residuals.moc
.
mix.colors.moc
computes subject colors by mixing group base colors
accordind to the subject posterior probabilities.
entropyplot
is a generic method to plot entropy.
entropyplot.moc
plots the prior and posterior subject entropy
(standardized or not) corresponding to a moc model. The
entropy being first sorted on prior then on posterior within prior.
## S3 method for class 'moc': plot(x,against=1:x$nvar,main=paste(substitute(x)),xlab="",ylab="", prob.legend=TRUE,scale=FALSE,group.colors=rainbow(x$groups),...) ## S3 method for class 'residuals.moc': plot(x,against="Index",groups=1:dim(x)[3],sunflower=FALSE,group.colors=NULL,...) profilesplot(x,...) ## S3 method for class 'moc': profilesplot(x,against=1:x$nvar,main=NULL,xlab="",ylab="", col.legend=TRUE,scale=FALSE, group.colors=rainbow(x$groups),type="subject",...) mix.colors.moc(object,group.colors=rainbow(object$groups)) entropyplot(x,...) ## S3 method for class 'moc': entropyplot(x,main=NULL,std=TRUE,lwd=1.5,col=c("red3","green3","gray95"),legend=TRUE,...)
x,object |
Objects of class moc or residuals.moc . |
against |
x axis for plotting the profiles.
A variable against which to plot the residuals or the strings
|
main, xlab, ylab, ... |
Arguments to be passed to plot ,
matplot . |
prob.legend, col.legend, legend |
Add a mixture probabilities, color legend and lines to the plot. |
sunflower |
Specify if a sunflower or standard plot is requested. |
scale |
Specify if each variable should be scaled.(see scale ) |
group.colors |
The groups colors to be used in the plot. |
groups |
Specify for which groups residuals.moc plot is
requested. |
type |
A string givint the type of profiles to plot
|
std |
If TRUE standardized entropy are plotted. |
lwd, col |
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. |
plot.moc
invisibly returns a list
containing the
plotted values and scaling information. plot.residuals.moc
invisibly returns the plotted residual values. mix.colors.moc
invisibly returns subject mixed colors in hexadecimal RGB values.
Bernard Boulerice <Bernard.Boulerice@umontreal.ca>
moc
,residuals.moc
,print.moc
,
AIC.moc