NSarrow | R Documentation |
Add north-south weather vane arrow figure
NSarrow(x = NULL, y = NULL, R = 1, col.arrow = 1, col.N = 1,
col.circ = 1, rot = 0, PMAT = NULL)
x |
X-location vector, if list, include both x and y values |
y |
Y-location vector, not needed if x is a list |
R |
radius, in plot coordinates |
col.arrow |
color for arrow, default="black" |
col.N |
color for N symbol |
col.circ |
color for circle |
rot |
rotation angle, degrees |
PMAT |
projection matrix, output of persp |
The location list should have 2 values for x and y each, the second value for y determines the radius R if it is not provided. The first element of y is the center of the weather vane. If no x-list is provided, the interactive locator function is invoked and a list is returned for future work.
x |
x-location |
y |
y-location |
Jonathan M. Lees<jonathan.lees@unc.edu>
zebra
plot(c(1:10), c(1:10), type='n')
x=c(2,2)
y = c(8,9)
NSarrow(list(x=x, y=y))
##### move over and repeat, with rotation of 25 degrees west
x=c(5,5)
y = c(8,9)
NSarrow(list(x=x, y=y), rot=25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.