Description Usage Arguments Author(s) See Also Examples
Use this function to draw connecting arrows between manifest and latent variables.
1 2 3 |
from |
An object of either class |
to |
An object of either class |
start |
Character string to specify the starting
direction of the arrow. Options are |
end |
Character string to specify the ending
direction of the arrow. Options are |
length |
length of the edges of the arrow head (in inches). |
angle |
angle from the shaft of the arrow to the edge of the arrow head. |
code |
integer code, determining kind of arrows to be drawn. |
col |
color of the arrow. |
lwd |
width of the arrow. |
... |
other arguments passed on to |
Gaston Sanchez
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## 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 wall
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.