plotSEMM_legend {plotSEMM}R Documentation

Legend function for plotSEMM plots

Description

Requires plotSEMM_setup be run first. Generates a legend that identifies different classes and the composite between-class estimate for the plotSEMM_contour and plotSEMM_probability plots. Can be used in place of the automatically-generated legends included in plotSEMM_contour and plotSEMM_probability.

Usage

plotSEMM_legend(lnty, lncol)

Arguments

lnty Determines the line types used for the class lines. If no value is provided, defaults to 3. See par for information about line type.
lncol Determines the line colors used for the class lines. If no value is provided, defaults to 1. See par for information about line type.

Value

None.

Author(s)

Bethany E. Kok, Jolynn Pek, Sonya Sterba and Dan Bauer

Maintainer: Bethany E. Kok <bethanyk@unc.edu>

References

http://www.bethanykok.com/plotSEMM.html

See Also

plotSEMM_setup, plotSEMM_contour, plotSEMM_probability

Examples

## 2 class empirical example on positive emotions and heuristic processing in Pek, Sterba, Kok & Bauer (XXXX)
 
pi <- c(0.602, 0.398)

alpha1 <- c(3.529, 2.317)

alpha2 <- c(0.02, 0.336)

beta21 <- c(0.152, 0.053)

psi11 <- c(0.265, 0.265)

psi22 <- c(0.023, 0.023)

 
plotSEMM_setup(pi, alpha1, alpha2, beta21, psi11, psi22)


plotSEMM_legend()

plotSEMM_legend(6,2)

[Package plotSEMM version 1.0 Index]