rect_coords: Find graphics device coordinates for rectangles

Description Usage Arguments Details Value

Description

Finds graphics device coordinates for rectangles that can be used to construct image legend

Usage

1
rect_coords(minWorS, maxEorN, ncuts, EWorNS = "EW", constEWorNS, resEWorNS)

Arguments

minWorS

The minimum X (horizontal legend) or Y (vertical) user coordinate (0 - 1) for the legend

maxEorN

The maximum X (horizontal legend) or Y (vertical) user coordinate (0 - 1) for the legend

ncuts

Number of intervals for legend

EWorNS

"EW" for horizontal legend (default) or "NS" for vertical

constEWorNS

The coordinate that will remain constant (X coord for vertical legend, Y for horiz)

resEWorNS

The width in user coordinate for the legend

Details

This function depends on the TeachingDemos library, and still uses the deprecated cnvrt.coords().

Value

List of coordinates for the four corners of each segment of legend, in graphical device coords


PrincetonUniversity/lmisc documentation built on May 8, 2019, 3:23 a.m.