Learn R Programming

mixedMem (version 1.0.2)

vizMem: Mixed Membership Visualization

Description

Plots estimates for individual group membership. The estimates used are the normalized phi, which are the posterior means from the variational distribution. The estimated model is shown in black, and the comparison (if available) is shown in red.

Usage

vizMem(model, compare = NULL, main = "Estimated Membership", nrow = NULL,
  ncol = NULL, indices = NULL, groupNames = NULL, fitNames = NULL)

Arguments

model
the mixedMemModel object that will be plotted
compare
estimates to compare against. This should be a matrix with same dimensions as model$phi
main
title of plot
nrow
the number of rows in each plot
ncol
the number of columns in each plot
indices
the specific individuals to plot. If the argument is left blank, all individuals will be plotted
groupNames
vector specifying labels for each sub-population
fitNames
the names of the models plotted

Details

This is the function called by the plot generic function for mixedMemModel objects