From: Ted Harding <Ted.Harding_at_manchester.ac.uk>

Date: Mon, 21 Jul 2008 13:13:48 +0100 (BST)

E-Mail: (Ted Harding) <Ted.Harding_at_manchester.ac.uk> Fax-to-email: +44 (0)870 094 0861

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 21 Jul 2008 - 12:18:23 GMT

Date: Mon, 21 Jul 2008 13:13:48 +0100 (BST)

Hi Folks,

I've been digging for the solution to this for several
hours now. If there is a solution, it must be one of the
worst "needle-in-a-haystack" examples in R documentation!

I have sort-of solved this (as stated) for one special case, after a depth-4 search through

?plot --> ?plot.default --> ?par --> ?axis

which finally led me to the parameter "pos" to axis():

* ?axis
*

pos: the coordinate at which the axis line is to be drawn:
if not 'NA' this overrides the values of both 'line' and 'mgp[3]'.

Hence, instead of

plot(c(0.5,2.5),c(0.5,2.5),xlim=c(0,3),ylim=c(0,3),

frame.plot=FALSE)

(where the axes do not meet at the origin (0,0)), I can do

plot(c(0.5,2.5),c(0.5,2.5),xlim=c(0,3),ylim=c(0,3),

frame.plot=FALSE,pos=0)

which is *exactly* what I want in this case.

Provided I keep the xlim and ylim to both have lower value 0, a similar solution again works fine:

plot(c(0.5,2.5),c(2.5,4.5),xlim=c(0,3),ylim=c(0,5),

By analogy to the above, I need to set a "pos=0" for the X-axis, and a "pos=2" for the y-axis. And I have not been able to discover how to do this.

With thanks,

Ted.

E-Mail: (Ted Harding) <Ted.Harding_at_manchester.ac.uk> Fax-to-email: +44 (0)870 094 0861

Date: 21-Jul-08 Time: 13:13:45 ------------------------------ XFMail ------------------------------ ______________________________________________R-help_at_r-project.org mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 21 Jul 2008 - 12:18:23 GMT

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.2.0, at Mon 21 Jul 2008 - 13:32:01 GMT.

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