arrow2 | R Documentation |
text()
to print a character using a default font.
This way, it is possible to render different types of arrows.This is an alternative helper function that plots arrows.
It uses text()
to print a character using a default font.
This way, it is possible to render different types of arrows.
arrow2(x, y, angle, size = 0.1, col = "black", chr = intToUtf8(10139))
x |
X-coordinate of the arrow. |
y |
Y-coordinate of the arrow. |
angle |
Angle in radians. |
size |
Similar to |
col |
Color of the arrow. |
chr |
Character representing the arrow. You should provide the character as escaped UTF-8. |
Viliam Simko
# Not run: arrow2(x[j], y[i], angle = phases[i, j],
# Not run: col = arrow.col, size = arrow.len)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.