plot.mixedMemModel {mixedMem} | R Documentation |
Plot a Mixed Membership Model
Description
Generic S3 function to produce visual representation of a mixedMemModel
object. This function calls either the vizTheta
or
the vizMem
function.
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 |
type |
a string which indicates which estimated parameters to plot; valid options are "theta" or "membership".
|
compare |
an array or matrix for comparison. When type = "theta", |
main |
the main figure title. |
varNames |
a vector of strings corresponding to names for each variable if plot type is theta. |
groupNames |
a vector of strings corresponding to labels for each sub-population. |
nrow |
the number of rows for the grid of plots. |
ncol |
the number of columns for the grid of plots. If plot type is "theta", this must be K, if plot type is "membership", this must be a positive integer. |
indices |
a vector of integers. If the plot type is "membership", this indicates which individuals to plot. When plot type is "theta", this indicates which variables to plot. |
fitNames |
a vector of strings corresponding to labels for each fit. |
... |
additional parameters to be passed. |
See Also
mixedMemModel, vizTheta, vizMem