Description Usage Arguments Details Author(s) See Also Examples
Use this function to open a white canvas to start drawing
a path diagram. By default, wall
opens a new plot
window from 0 to 1 in both axes.
1 |
xlim |
Numeric vector of length 2 giving the x
coordinate range. Default |
ylim |
Numeric vector of length 2 giving the y
coordinate range. Default |
xpd |
Logical value to indicate if all plotting is clipped to the figure region. The default is c(1, 1, 1, 1). |
... |
other graphical arguments passed on to
|
wall
calls plot.new()
and
plot.window()
to open a new plot frame.
Gaston Sanchez
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
# latent variables
attack = latent("ATTACK", x=0.35, y=0.7, rx=0.08, ry=0.06)
defense = latent("DEFENSE", x=0.35, y=0.3, rx=0.08, ry=0.06)
success = latent("SUCCESS", x=0.65, y=0.5, rx=0.08, ry=0.06)
# open diagram
wall()
# draw latent variables
draw(attack)
draw(defense)
draw(success)
# add arrows
arrow(from=attack, to=success, start="east", end="west")
arrow(from=defense, to=success, start="east", end="west")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.