plot.mixedMemModelVarInf: Plot a Mixed Membership Model

Description Usage Arguments See Also

Description

Generic S3 function to produce visual representation of a mixedMemModelVarInf object. This function calls either the vizTheta or the vizMem function.

Usage

1
2
3
4
## S3 method for class 'mixedMemModelVarInf'
plot(x, type = "theta", compare = NULL,
  main = NULL, varNames = NULL, groupNames = NULL, nrow = NULL,
  ncol = NULL, indices = NULL, fitNames = NULL, ...)

Arguments

x

the mixedMemModelVarInf object to be plotted.

type

a string which indicates which estimated parameters to plot; valid options are "theta" or "membership". vizTheta is called when the type is "theta" and vizMem is called when the type is "membership".

compare

an array or matrix for comparison. When type = "theta", compare should be an array the same size as x$theta. When type = "membership", compare should be a matrix the same size as x$phi.

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

mixedMemModelVI, vizTheta, vizMem


ysamwang/mixedMem documentation built on May 4, 2019, 5:33 p.m.