[R] axis lines crossing at origin

Robin Hankin rksh at soc.soton.ac.uk
Thu Nov 11 16:50:43 CET 2004


how do I make my axes cross at the origin?

x <- seq(from=-pi,to=pi,len=30)

makes the axes cross at about (-pi,-1).

How do I get my x and y axes to cross in the centre of the graph, 
with the sine curve passing through
the intersection?

I couldn't find anything in ?par or ?axis; searching R-FAQ for "axis" 
didn't help.

Robin Hankin
Uncertainty Analyst
Southampton Oceanography Centre
SO14 3ZH
tel +44(0)23-8059-7743
initialDOTsurname at soc.soton.ac.uk (edit in obvious way; spam precaution)

More information about the R-help mailing list