Re: [Rd] Is text(..., adj) upside down? (Or am I?)

2008-07-22 Thread Patrick Burns
Basically the only thing in the thread that was clear to me was Brian's phrasing. So I'd suggest basing any changes on that. Patrick Burns [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User") S Ellison wrote: Yup; you're all

Re: [Rd] Is text(..., adj) upside down? (Or am I?)

2008-07-22 Thread S Ellison
Yup; you're all right - it IS consistent (and I'd even checked the x-adj and it did what I expected!!). It's just that ?text is talking about the position of the 'anchor' point in the text region rather than the subsequent location of the centre of the text. Anyway; if anyone is considering a mino

Re: [Rd] Is text(..., adj) upside down? (Or am I?)

2008-07-22 Thread Prof Brian Ripley
On Tue, 22 Jul 2008, S Ellison wrote: ?text says "'adj' allows _adj_ustment of the text with respect to '(x,y)'. Values of 0, 0.5, and 1 specify left/bottom, middle and right/top, respectively." But it looks like 0, 1 specify top, bottom respectively in the y direction. plot(1:4) te

Re: [Rd] Is text(..., adj) upside down? (Or am I?)

2008-07-22 Thread Peter Dalgaard
S Ellison wrote: ?text says "'adj' allows _adj_ustment of the text with respect to '(x,y)'. Values of 0, 0.5, and 1 specify left/bottom, middle and right/top, respectively." But it looks like 0, 1 specify top, bottom respectively in the y direction. plot(1:4) text(2,2, "adj=c(0,0)

Re: [Rd] Is text(..., adj) upside down? (Or am I?)

2008-07-22 Thread Duncan Murdoch
On 7/22/2008 7:36 AM, S Ellison wrote: ?text says "'adj' allows _adj_ustment of the text with respect to '(x,y)'. Values of 0, 0.5, and 1 specify left/bottom, middle and right/top, respectively." But it looks like 0, 1 specify top, bottom respectively in the y direction. plot(1:4)

[Rd] Is text(..., adj) upside down? (Or am I?)

2008-07-22 Thread S Ellison
?text says "'adj' allows _adj_ustment of the text with respect to '(x,y)'. Values of 0, 0.5, and 1 specify left/bottom, middle and right/top, respectively." But it looks like 0, 1 specify top, bottom respectively in the y direction. plot(1:4) text(2,2, "adj=c(0,0)", adj=c(0,0)) text

Re: [Rd] Parameter names in nls()

2008-07-22 Thread Prof Brian Ripley
They are not 'stripped': nothing says that because you named the starting value that other values will be named. You are misusing nls(): the documented way would be to have data.x <- 1:50 data.y <- pi*data.x + rnorm(50,sd=20) fitting.fn <-function(x, a, b) a + b*x nls(data.y ~ fitting.fn(data.x

[Rd] Parameter names in nls()

2008-07-22 Thread Mark Payne
Dear R-dev, I have been having some problems with regards to names in the parameter vector being stripped when passed to the objective function when using nls(). I was relieved to find that it wasn't me, and that this behaviour has previously been reported in optim() also. See eg https://stat.ethz

Re: [Rd] Clash between 'Cairo' and 'EBImage' packages on Windows

2008-07-22 Thread Prof Brian Ripley
On Mon, 21 Jul 2008, Simon Urbanek wrote: Brian, thanks for the analysis. On Jul 21, 2008, at 6:29 , Prof Brian Ripley wrote: On Mon, 21 Jul 2008, Sklyar, Oleg (London) wrote: EBImage is dynamically linked against GTK, which includes cairo libraries, so those are installed along with GTK.