[R] Scatterplot axes

Pfaff, Bernhard Bernhard.Pfaff at drkw.com
Wed Dec 10 14:54:48 CET 2003


> Please, could someone help me figure out what seems to be a 
> very simple
> problem (and is still taking me hours...).
> I want to draw a simple scatterplot but with 'equal' axes, 
> i.e. I want both
> axes to go from -3 to 3. Values for x lie between -2 and 0.5, 
> values for y

Hello Ellen,

how about:

(x <- seq(-2, 0.5, length=10))
(y <- seq(-3, 3, length=10))
plot(y~x, xlim=c(-3,3), ylim=c(-3, 3))

HTH,
Bernhard



> between -2.2 and 3. I have tried 'usr' and 'eqscplot' and a few other
> options, but it doesn't give me the desired result.
> Many thanks!!!
> Ellen
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 


--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.




More information about the R-help mailing list