plot_3d | R Documentation |
Plot a z = f(x,y) function
plot_3d(
f = NULL,
xrange = c(-1, 1),
yrange = c(-1, 1),
points = 50,
contour = FALSE,
...
)
f |
a f(x,y) function |
xrange |
x domain |
yrange |
y domain |
points |
number of points |
contour |
if TRUE make a contour plot instead of 3d plot |
fun <- function(x, y) x^2 + y^2
par(mfrow = c(1,2))
plot_3d(fun)
plot_3d(fun, contour = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.