[R] Help needed with Krig and predict

2012-08-01 Thread phi771
Hello everybody! I have a problem, which I'm trying to solve. I have two Krig-fits: kr_one and kr_two; both use x and y and additional either A (kr_one) or B (kr_two): kr_one <- with(1, Krig(cbind(x,y), A)) kr_two <- with(1, Krig(cbind(x,y), B)) I can view the 3d-plane using: image(predict.surf

Re: [R] how to add 3d-points to bplot {rms} figure?

2012-04-12 Thread phi771
h! thank you a lot for your effort and help. i preferred a 3d view of the surface in order to see how well it fits the real data (from the file). i will play around with the functions you have mentioned and post my results or further problems. this will probably take a few days :( can anybody ans

[R] how to add 3d-points to bplot {rms} figure?

2012-04-09 Thread phi771
Hello! I have created a bplot-figure using this code: *file <- "2dcali_red.ttt" ux<-as.matrix(read.table(file, dec = ",")) mode(ux)<-'numeric' vel<-ux[,1] ang<-ux[,2] x<-ux[,3] y<-ux[,4] dat<- data.frame(ang=ang, x=x,y=y) require(rms) ddist2 <- datadist(dat) options(datadist="ddist2") fitn

[R] fitting plane to 3dim set of data

2012-03-17 Thread phi771
Hello! I have a problem creating a fitting plane through my 3d-data set. here is a sample how my set looks like (x,y,z (with z increasing)): > dataset [,1] [,2] [,3] [1,] -1.3712 -3.1551 10 [2,] -1.2690 -3.0751 10 [3,] -1.1216 -2.9768 10 [4,] -0.9875 -2.898