Learn R Programming

ChemoSpecUtils (version 1.0.5)

.prepLegendCoords: Sanitize Legend Coordinates

Description

Internal function.

Usage

.prepLegendCoords(go, leg.loc, x.min = 0, x.max = 0, y.min = 0, y.max = 0)

Value

A list of coordinates specifying x and y position of the legend along with a position designation, except in one case where a string is returned.

Arguments

go

A string specifying the graphics mode.

leg.loc

A list giving x and y coordinates.

x.min

A number giving the minimum x value in the data. Used only if graphics mode is set to base.

x.max

A number giving the maximum x value in the data. Used only if graphics mode is set to base.

y.min

A number giving the minimum y value in the data. Used only if graphics mode is set to base.

y.max

A number giving the maximum y value in the data. Used only if graphics mode is set to base.

Author

Bryan A. Hanson (DePauw University), Tejasvi Gupta.