arrows {Rcssplot} | R Documentation |
Add styled arrows to a plot
Description
This is a wrapper for R's arrows function. See R's documentation for graphics::arrows for further details.
Usage
arrows(x0, y0, x1 = x0, y1 = y0, Rcss = "default", Rcssclass = NULL, ...)
Arguments
x0 , y0 |
coordinates of *from* endpoint |
x1 , y1 |
coordinates of *to* endpoint |
Rcss |
style sheet object. Leave "default" to use a style defined via RcssSetDefaultStle() |
Rcssclass |
character, style class |
... |
Futher parameters, see documentation of graphics::arrows |
Examples
# draw an arrow
plot(c(0, 1), c(0, 1), type="n")
arrows(0.2, 0.2, x1=0.8, y1=0.5)
[Package Rcssplot version 1.0.0 Index]