nomoCoord: Find the Coordinate from the Scale of a Nomograph

Description Usage Arguments Details Value Examples

View source: R/nomoCoord.R

Description

Find the x and y coordinate corresponding to a specified point on a nomograph scale.

Usage

1
nomoCoord(df, val)

Arguments

df

A data frame with three columns, the x and y coordinates of the nomograph scale and the corresponding values.

val

A numeric scalar identifying the point on the scale for which the coordinates will be returned.

Details

The function makes it easier to add points or lines to a nomograph for illustrative purposes.

Each scale is assumed to be displayed on the log10 scale.

Value

A numeric vector of length two with the x and y coordinates of the specified point in plotting units of the nomograph.

Examples

1
2
3
4
scales <- LWnomo1(TRUE)
fromxy <- nomoCoord(scales$scale1r, 34)
toxy <- nomoCoord(scales$scale3, 16^2/(100*34))
segments(fromxy[1], fromxy[2], toxy[1], toxy[2], col="red")

JVAdams/LW1949 documentation built on May 7, 2019, 10:14 a.m.