Learn R Programming

itsadug (version 0.8)

getCoords: Utility function.

Description

Function for positioning a legend or label in or outside the plot region based on proportion of the plot region rather than Cartesian coordinates.

Usage

getCoords(pos = 1.1, side = 1)

Arguments

pos
A number indicating the proportion on the x-axis. Default is 1.1.
side
Which axis to choose: 1=bottom, 2=left, 3=top, 4=right. Default is 1.

See Also

Other Utility functions for plotting: addInterval; alphaPalette; alpha; dotplot_error; emptyPlot; errorBars; fadeRug; fill_area; find_difference; gradientLegend; horiz_error; plot_error