Re: [R] how to make the units in x and y axis equal?

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed 17 May 2006 - 17:44:30 EST

On Wed, 17 May 2006, Haiyong Xu wrote:

> Hi there,
> I encountered a problem when plotting circles. It looks weird that the radii
> in x and y axis are different since the default lengths of units in x and y
> axes are different.
> Is there any way to make the units equal?
> I run the following codes and got a plot attached.
>
> symbols(rep(0,6), rep(0,6), circles = c(5, 15, 25, 35, 45, 55), inches =
> FALSE, xlim = c(-60,60), ylim = c(-60, 60))

Add asp=1 (see ?symbols).

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed May 17 17:54:40 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 17 May 2006 - 18:10:10 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.