[R] setting x-y axis at origin

Spencer Graves spencer.graves at pdf.com
Mon Mar 15 19:32:57 CET 2004


      I don't understand exactly what you want but the following might 
help: 

plot(1:11, 1:11, xlim=c(2, 5), ylim=c(3, 7))

      Is this what you want?  spencer graves

christopher ciotti wrote:

> Hello -
>
> I'm just getting into 'R' and am having trouble setting up the x-y 
> axis to share (0,0).  In the example posted here: 
> http://geocities.com/chris_ciotti/Images/part1.pdf, each axis has a 0 
> which I do not want.
> Any help on getting a graph starting at (0,0) would be greatly 
> appreciated.
>




More information about the R-help mailing list