RGL package surface plot
I'm completely new at R... I have sinkhole survey data (lat, long, and elevation) and have been trying to plot a rotatable 3d plot for several hours... cannot get it right.
You can use loess and predict.loess to generate a fitted 3d surface that can be plotted using contour() and similar. However, given the environmental nature of your problem, you might also look at the geoR package, which implements kriging, one of the more comon fitting methods for environmental data. There's a discussion of using that for prediction of a grid and a subsequent (base graphics) 3-D plot at http://streaming.stat.iastate.edu/~stat506/notes/ordkrigeexamp.pdf S Ellison
I'm completely new at R... I have sinkhole survey data (lat, long, and elevation) and have been trying to plot a rotatable 3d plot for several hours... cannot get it right. Examples I see tend to be grid data (one elevation value per grid cell); however, my data are more random (known elevations at known (but random) x-y positions). Data format is tab separated, i.e.: lat long elev 34 43 2 36.8 32.54 6.2 ...etc... please help! arik -- View this message in context: http://r.789695.n4.nabble.com/RGL-package-surface-plot-tp4645642.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}