arrows: Add styled arrows to a plot

Description Usage Arguments Examples

View source: R/RcssWrappers.R

Description

This is a wrapper for R's arrows function. See R's documentation for graphics::arrows for further details.

Usage

1
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

1
2
3
# draw an arrow
plot(c(0, 1), c(0, 1), type="n")
arrows(0.2, 0.2, x1=0.8, y1=0.5)

Rcssplot documentation built on Jan. 8, 2020, 5:11 p.m.