ramVF: Generate a vector field plot based on the bivariate lcsm

View source: R/blcs.R

ramVFR Documentation

Generate a vector field plot based on the bivariate lcsm

Description

Generate a vector field plot based on the bivariate lcsm

Usage

ramVF(ramout, ylim, xlim, ninterval=10, scale=.1, length=.25, 
scatter=TRUE, n=20, alpha=.95, ...)

Arguments

ramout

Output from the ramBLCS function

ylim

Range of y data, for example, c(0,80) from 0 to 80

xlim

Range of x data, for example, c(0,80) from 0 to 80

ninterval

Number of intervals for plotting. The default is 10.

scale

Time interval to calculate vector fields.

length

The length of arrows to plot

scatter

Whether to plot the data points

n

The number of data points to be plotted

alpha

The confidence level to calculate the ellipse

...

Options for plot and arrows function.

References

Zhang, Z., Hamagami, F., Grimm, K. J., & McArdle, J. J. (2015). Using R package RAMpath for tracing SEM path diagrams and conducting complex longitudinal data analysis. Structural Equation Modeling, 22(1), 132-147. https://doi.org/10.1080/10705511.2014.935257

Examples

data(ex3)
test.blcs<-ramBLCS(ex3, 1:6, 7:12, ram.out=TRUE)
ramVF(test.blcs, c(0,80),c(0,80), length=.05, xlab='X', ylab='Y',scale=.5, ninterval=9)

RAMpath documentation built on Aug. 27, 2023, 5:06 p.m.