axisArrows: Axis arrows

Description Usage Arguments Details Author(s) See Also Examples

View source: R/axisArrows.R

Description

Add arrows to axes to indicate direction

Usage

1
axisArrows(side = 1:2, backward = FALSE, offset = 0.1, ...)

Arguments

side

numeric indicating which sides(s) to put arrows on (following convention of axis)

backward

logical, should the arrow be backwards (i.e. pointing down if side is 2 or 4, or pointing left if side is 1 or 3)

offset

numeric given the proportion by which to offset the start and end of the arrow from the plot edges

...

arguments passed to function arrows

Details

This function puts arrows in the margin space and will try to fit the arrows nicely, but assumes some space has been left for them (e.g. through mar argument to par)

Author(s)

Andy Rominger <ajrominger@gmail.com>

See Also

axis, arrows, logAxis

Examples

1
2
plot(1)
axisArrows(side=1:2, length=0.1)

ajrominger/socorro documentation built on Jan. 3, 2020, 6:25 a.m.