Re: [R-sig-eco] lines() adds extra line

2011-01-24 Thread Jane Shevtsov
Thanks; that works! Best, Jane On Mon, Jan 24, 2011 at 10:15 AM, Sarah Goslee wrote: > R is doing just as you asked. If you look at the middle of c(x, x) the > x values jump from 10 to -10 and R draws the line segment connecting > them, as it's been told. > >> c(x,x)[195:205] >  [1]   9.4   9.5

Re: [R-sig-eco] lines() adds extra line

2011-01-24 Thread Sarah Goslee
R is doing just as you asked. If you look at the middle of c(x, x) the x values jump from 10 to -10 and R draws the line segment connecting them, as it's been told. > c(x,x)[195:205] [1] 9.4 9.5 9.6 9.7 9.8 9.9 10.0 -10.0 -9.9 -9.8 -9.7 You might rather have: > x2.rev <- c(x, rev

[R-sig-eco] lines() adds extra line

2011-01-24 Thread Jane Shevtsov
I'm trying a bit of an experiment with polynomial curve fitting (don't worry, I wouldn't do this to actual data -- it's just a toy model for a specific question). When I generate a linear model of the data and plot it using plot(), everything works fine. But when I use plot(..., type="l") or lines(

[R-sig-eco] Random factor and MANOVA (Aitor Larranaga)

2011-01-24 Thread Aitor Larrañaga
Dear all, I have an experimental design with two fixed factors and a blocking factor (random) and I have data on several response variables for which I want to perform a MANOVA. After creating a matrix with the variables I want to be included in the MANOVA with > Y<-cbind(variableA, variab