[R] plot3d, wireframe, persp help
dxc13 at health.state.ny.us
Thu Dec 20 15:17:19 CET 2007
When using the wireframe function you need to create a 2D grid for your two X
variables. Try the "expand.grid" function on your data, then run the
wireframe on that result
Brad B-2 wrote:
> I am trying to get a surface plot of a data set that looks like the
> 1 2 5.6
> 5 9 2.4
> 9 8 9.8
> ... to (60,000 rows down)
> From my homework, the persp function only works with evenly spaced data
> points with the z data beeing in a matrix. my data is not in that format.
> the wireframe fxn gives me an error,
> no applicable method for "wireframe"
> the plot3d fxn I got working thanks to Scionforbai's help. However it
> does not represent the data like wireframe or persp would.
> Any help would be appreciated.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/plot3d%2C-wireframe%2C-persp-help-tp14436239p14437124.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help