locArrow: arrow at locator point in graph

View source: R/locArrow.R

locArrowR Documentation

arrow at locator point in graph

Description

Draw arrow at positions in a graph located by clicking and return the code to recreate it

Usage

locArrow(digits = 2, length = 0.1, code = 2, ...)

Arguments

digits

Number of digits coordinates are rounded to with signif

length

Length of the edges of the arrow head (in inches). DEFAULT: 0.1

code

Direction of arrow head. DEFAULT: 2 (from first to last point clicked)

...

Further arguments passed to arrows like lwd, col etc

Details

Not tested across platforms yet...

Value

Character string with code

Author(s)

Berry Boessenkool, berry-b@gmx.de, Jun 2016

See Also

locLine, locator, abline

Examples


plot(cumsum(rnorm(60)), type="l")
## locArrow() # only do this manually in interactive() mode
## locArrow(col="blue", lwd=3)


berryFunctions documentation built on May 29, 2024, 4:01 a.m.