Learn R Programming

mixedMem (version 1.0.2)

plot.mixedMemModel: Plot a Mixed Membership Model

Description

Visual representation of a mixedMemModel object

Usage

## S3 method for class 'mixedMemModel':
plot(x, type = "theta", compare = NULL,
  main = NULL, varNames = NULL, groupNames = NULL, nrow = NULL,
  ncol = NULL, indices = NULL, fitNames = NULL, ...)

Arguments

x
the mixedMemModel object to be plotted
type
which estimated parameters to plot; either "theta" or "membership"
compare
model to compare. For type = "theta", compare should be an array the same size as x$theta for type = "membership", compare should be a matrix the same size as x$phi
main
title for chart
varNames
vector of names for each variable if plotting theta
groupNames
vector of labels for each sub-population
nrow
number of rows for the grid of plots
ncol
number of columns for the grid of plots. if plotting theta, this must be K, if plotting membership, this can be specified
indices
when plotting memberships, which individuals to plot. When plotting theta, which variables to plot
fitNames
vector of labels for each fit
...
additional parameters

See Also

mixedMemModel, vizTheta, vizMem