search for: yy2

Displaying 4 results from an estimated 4 matches for "yy2".

Did you mean: yy
2008 Feb 12
2
shaded area graph and extra plot
...How can this be sorted out? Thanks in advance ############################################# plot.new() plot.window(xlim=c(1993,2008), xaxs="i", ylim=c(0,400), yaxs="i") x=1994:2007 xx = c(1994, x, 2007) yy1 = c(0, indexSp[,"Xhat5Sp"]+indexSp[,"seA"], 0 ) yy2 = c(0, indexSp[,"Xhat5Sp"]-indexSp[,"seA"], 0 ) polygon(xx, yy1, col="grey", lty=0) polygon(xx, yy2, col="white", lty=0) lines(x, indexSp[,"Xhat5Sp"], type="l") axis(1) axis(2) par(new=T) plot(1996:2007, c(0,0,indexSu[,"Xhat5Su&quo...
1999 Feb 16
1
Missing tick marks bug on alpha solved
...lot(0:1,axes=FALSE) > axis(1,1:2) The problem is in X11_Line(...) from .../src/unix/devX11.c, which is so short I've included the whole function below: static void X11_Line(double x1, double y1, double x2, double y2, int coords, DevDesc *dd) { double xx1, yy1, xx2, yy2; <----------- should be int! x11Desc *xd = (x11Desc *) dd->deviceSpecific; /* In-place conversion ok */ GConvert(&x1, &y1, coords, DEVICE, dd); GConvert(&x2, &y2, coords, DEVICE, dd); xx1 = (int) x1; yy1 = (int) y1; xx2 = (int) x2;...
2011 Mar 19
1
strange PREDICTIONS from a PIECEWISE LINEAR (mixed) MODEL
...-as.character(c(1:200)) id<-sample(g,size=1000,replace=T, prob=sample(0:1,200,rep=T)) table(id) #unbalanced mod2<-lme(y~x+x*(x>-1),random=~x|id, data=data.frame(x,y,id)) summary(mod2) newframe<-data.frame( #fictious id id="fictious", x) newframe[1:5,] #predictions yy2<-predict(mod2,level=0, newdata=newframe) lines(x[order(x)],yy2[order(x)],col="blue",lwd=2) # add variable in the model z<-rgamma(1000,4,6) mod3<-lme(y~x+x*(x>-1)+z ,random=~x|id, data=data.frame(x,y,z,id)) summary(mod3) #new id newframe2<-data.frame( #fictious i...
2010 Dec 09
4
Sequence generation in a table
Dear R helpers I have following input f = c(257, 520, 110). I need to generate a decreasing sequence (decreasing by 100) which will give me an input (in a tabular form) like 257, 157, 57 520, 420, 320, 220, 120, 20 110, 10 I tried the following R code f = c(257, 520, 110) yy = matrix(data = NA, nrow = 3, ncol = 6) for (i in 1:3)      {      value = NULL      for (j in 1 : 6)           {