Re: [R] plot3d, wireframe, persp help

From: dxc13 <dxc13_at_health.state.ny.us>
Date: Thu, 20 Dec 2007 06:17:19 -0800 (PST)

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:
>
> Hello,
> I am trying to get a surface plot of a data set that looks like the
> following,
> 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.
> thanks
>
>
>
> ---------------------------------
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
>

-- 
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.

______________________________________________
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.
Received on Thu 20 Dec 2007 - 14:28:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 20 Dec 2007 - 14:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.