plot3D | R Documentation |
Surface plot of two-dimensional test function.
plot3D(x, length.out = 100L, package = "plot3D", ...)
x |
[ |
length.out |
[ |
package |
[ |
... |
[any] |
library(plot3D)
fn = makeRastriginFunction(dimensions = 2L)
## Not run:
# use the plot3D::persp3D method (default behaviour)
plot3D(fn)
plot3D(fn, contour = TRUE)
plot3D(fn, image = TRUE, phi = 30)
# use plotly::plot_ly for interactive plot
plot3D(fn, package = "plotly")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.