I am quite new in R language and I finally have been able to make a surface with the fallowing code:
drilling_trial<- read.table("DRILLING_TRIAL.csv",header=TRUE,sep=",")
all_pit_data<- read.table("ALL_PIT_DATA.csv",header=TRUE,sep=",")
require("akima")
s <- with(all_pit_data,interp(x1,y1,z1))
library("rgl")
plot3d(drilling_trial$x,drilling_trial$y,drilling_trial$z, col = drilling_trial$d, add = FALSE, axes = TRUE, bbox = TRUE, xlab="x", ylab="y", zlab="z")
surface3d(s$x,s$y,s$z,col="gray")
Bynow, my surface is gray but I would like to color it with shaded off color (gradation) depending on the z position. Someone have an idea on how to do so?
Thank you,
Sim