R has several options for projecting a 3 dimensional plot onto a 2 dimensional plane and plotting the result. Which is best depends on what you want.
You mention a function "plot3d" but not which package it comes from. You are more likely to receive prompt and useful help when you do your part of the homework and tell us which package it is from (it is not in the default packages). In fact, with a name like that, there could easily be more than one package with a function of that name and if we tell you how to use the function from a different package than you are using then the "help" will probably be more confusing than helpful. In base R you can use functions like persp, image, and contour (after using a function like outer), the help pages have examples. If you load the lattice package then you can use wireframe, levelplot, or contourplot, again the help pages have examples. The TeachingDemos package has functions rotate.persp and rotate.wireframe that create an interactive interface to the corresponding plots. The help page for the plot3d function in the RGL package (one likely candidate for the function you mentioned) points to the plot3d.function function in the "See Also" section which has examples that you could plug your function into. On Wed, Aug 19, 2015 at 5:47 AM, chappo007 <consult...@logiccorp.com> wrote: > Hi, > > I've been led to believe that in R it is possible to produce a 3d > analytical plot of a function. I've been pointed in the direction of > plot3d(), so the command is something like > plot3d(x^2+y^2,(x,-3,3),(y,-3,3)). And a smart person out there is going to > tell me where this syntax comes from (or belongs to), there is also a R > package called MapleSoft ( I believe) which is commercial, and there is > always Mathematica. So is there a R function to plot z=f(x,y) without > obtain or generating data. > > Cheers, > Mike > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Plot-z-f-x-y-analytically-tp4711272.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.