Internal function.
.prepLegendCoords(go, leg.loc, x.min = 0, x.max = 0, y.min = 0, y.max = 0)
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.
A string specifying the graphics mode.
A list giving x and y coordinates.
A number giving the minimum x value in the data. Used only if graphics mode is set to base.
A number giving the maximum x value in the data. Used only if graphics mode is set to base.
A number giving the minimum y value in the data. Used only if graphics mode is set to base.
A number giving the maximum y value in the data. Used only if graphics mode is set to base.
Bryan A. Hanson (DePauw University), Tejasvi Gupta.