Commit 5019f80c by agebhard

### add an interactive visualisation via rgl, disable use during check

parent 5414fd8d
 ... @@ -25,5 +25,48 @@ Smooth Surface Fitting Based on Local Procedures", ... @@ -25,5 +25,48 @@ Smooth Surface Fitting Based on Local Procedures", CACM, CACM, Vol. 17, No. 1, January 1974, pp. 18-20. Vol. 17, No. 1, January 1974, pp. 18-20. } } \examples{ \dontrun{ library(rgl) data(akima) # data rgl.spheres(akima\$x,akima\$z , akima\$y,0.5,color="red") rgl.bbox() # bivariate linear interpolation # interp: akima.li <- interp(akima\$x, akima\$y, akima\$z, xo=seq(min(akima\$x), max(akima\$x), length = 100), yo=seq(min(akima\$y), max(akima\$y), length = 100)) # interp surface: rgl.surface(akima.li\$x,akima.li\$y,akima.li\$z,color="green",alpha=c(0.5)) # interpp: akima.p <- interpp(akima\$x, akima\$y, akima\$z, runif(200,min(akima\$x),max(akima\$x)), runif(200,min(akima\$y),max(akima\$y))) # interpp points: rgl.points(akima.p\$x,akima.p\$z , akima.p\$y,size=4,color="yellow") # bivariate spline interpolation # data rgl.spheres(akima\$x,akima\$z , akima\$y,0.5,color="red") rgl.bbox() # bivariate linear interpolation # interp: akima.si <- interp(akima\$x, akima\$y, akima\$z, xo=seq(min(akima\$x), max(akima\$x), length = 100), yo=seq(min(akima\$y), max(akima\$y), length = 100), linear = FALSE, extrap = TRUE) # interp surface: rgl.surface(akima.si\$x,akima.si\$y,akima.si\$z,color="green",alpha=c(0.5)) # interpp: akima.sp <- interpp(akima\$x, akima\$y, akima\$z, runif(200,min(akima\$x),max(akima\$x)), runif(200,min(akima\$y),max(akima\$y)), linear = FALSE, extrap = TRUE) # interpp points: rgl.points(akima.sp\$x,akima.sp\$z , akima.sp\$y,size=4,color="yellow") } } \keyword{datasets} \keyword{datasets} % Converted by Sd2Rd version 0.2-a3. % Converted by Sd2Rd version 0.2-a3.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!