plot.RAMpath {RAMpath} | R Documentation |
Plot the path diagram according to RAM path and bridges or Plot the vector field for the bivariate latent change score model
Description
Plot the path diagram according to RAM path and bridges or Plot the vector field for the bivariate latent change score model
Usage
## S3 method for class 'RAMpath'
plot(x, file, from, to, type = c("path", "bridge"),
size = c(8, 8), node.font = c("Helvetica", 14), edge.font = c("Helvetica", 10),
rank.direction = c("LR", "TB"), digits = 2, output.type = c("graphics", "dot"),
graphics.fmt = "pdf", dot.options = NULL, ...)
## S3 method for class 'blcs'
plot(x, ylim, xlim, ninterval=10, scale=.1, length=.25,
scatter=TRUE, n=20, alpha=.95, ...)
Arguments
x |
Output from the |
file |
File name for the generated figures |
from |
from variable: path starts from this variable |
to |
to variable: path ends on this variable |
type |
|
size |
The size of the plot in inches |
node.font |
The size of the text for the variables |
edge.font |
The size of the text on the pahts |
rank.direction |
LR: from left to right; TB: from top to bottom. |
digits |
Digits of numbers to plot |
output.type |
If "graphics", the default, both a ".dot" file and a graphics file will be created. |
graphics.fmt |
a graphics format recognized by the dot program; the default is "pdf"; graphics.fmt is also used for the extension of the graphics file that is created. |
dot.options |
options to be passed to the dot program, given as a character string. |
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)
plot(test.blcs, c(0,80),c(0,80), length=.05, xlab='X', ylab='Y',scale=.5, ninterval=9)