[R] Adding a distance scale to a plot?

Jim Lemon jim at bitwrit.com.au
Tue Jan 5 08:59:53 CET 2010


On 01/05/2010 04:12 AM, Jason Rupert wrote:
> Do you know what steps I need to take to add a scale to a plot?
>
> I'm pulling my example out of "An Introduction to R: Software for StatisticalModelling&  Computing" (see the R code around Figure 76).
>
>
> I would like to add a scale to the image produced by the following code.  I would like to the scale to list the distance and units:
>    
Hi Jason,
The lengthKey function in the plotrix package might be what you need.

Jim



More information about the R-help mailing list