[R] arrow plots

Jim Lemon jim at bitwrit.com.au
Tue Dec 8 23:42:40 CET 2009


On 12/09/2009 05:42 AM, Cable, Samuel B Civ USAF AFMC AFRL/RVBXI wrote:
> Am doing some vector plots with the arrows() function.  Works well.  But
> what I need to do is supply an arrow for scaling for the reader.  I need
> to plot an arrow of some known magnitude somewhere on the page
> (preferably outside the bounds of the plot, so that it can be seen
> clearly) with some text underneath it that says, for instance, "10
> kg-m/sec".  Any ideas?  Thanks.
>
>    
Hi Samuel,
To add to what Gavin wrote, you can see code for a key of this sort in 
the lengthKey function in the plotrix package.

Jim




More information about the R-help mailing list