lineLocations: Wrapper Function for convertUnits Focused on Identifying the...

Description Usage Arguments Note Author(s) Examples

View source: R/lineLocations.R

Description

Wrapper Function for convertUnits Focused on Identifying the Locations of the Margin Lines of a Plot

Usage

1

Arguments

side

Integer giving the side of the plot to count lines from.

line

Numeric vector giving margin lines one wishes to find the data coordinates of.

Note

No attempt is made to limit the returned values to the device region.

Author(s)

Jasper Watson

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

## Illustrate where the lines fall when using mtext:
plot(1:10)
mtext(1:26, line = -(1:26), side = 1, col = 'blue')
x <- lineLocations(1, 0:(-26))
abline(h = x, col = 'red', lty = 2)

## End(Not run)

precisePlacement documentation built on June 15, 2021, 9:09 a.m.