[R] 'symbols' not plotting correct circle radii
jim at bitwrit.com.au
Sat Jul 21 13:31:05 CEST 2012
On 07/20/2012 12:33 AM, Stuart Leask wrote:
> You're right - easily tested by just re-sizing the graphics box - sort of counter-intuitive until I remember the clue is in the name - this generates a CIRCLE, come what may...
> From: Sarah Goslee [mailto:sarah.goslee at gmail.com]
> Sent: 19 July 2012 11:18
> To: Stuart Leask
> Cc: r-help at r-project.org
> Subject: Re: [R] 'symbols' not plotting correct circle radii
> On Thursday, July 19, 2012, Stuart Leask wrote:
> (Oh, and yes I've tried setting 'inches=F', but I then get a circle correct on X axis, but too large on the Y axis.)
> We're back to "read the help." ?symbols explictly states that if inches=FALSE and the axis scales are different, then the x axis coordinates will be used.
> And if your axes are different, why would you expect a *circle* to fit both simultaneously?
> Perhaps instead you need plot.ellipse from the plotrix package.
You might want to use draw.circle from the plotrix package, as it tries
to compensate for different axis scales.
More information about the R-help