curve3d {emdbook}R Documentation

Plot a 3D surface representing a 2D curve

Description

Two-dimensional analogue of curve: generates a surface and plots it

Usage

curve3d(expr, from = c(0, 0), to = c(1, 1), n = c(41, 41), add = FALSE,
zlab = NULL, log = NULL, sys3d = c("persp", "wireframe", "rgl",
"contour", "image", "none"), ...)

Arguments

expr a mathematical expression using x and y as the independent variables
from minimum values for x and y
to maximum values for x and y
n number of grid points in each direction
add (logical) add to an existing plot? (only possible for contour plots or rgl)
zlab z label
log (character): "x", "y", or "xy" for logarithmic axes
sys3d 3D plotting system to use: one of "persp", "wireframe", "rgl", "contour", "image", or "none"
... additional arguments to the plotting functions

Value

invisibly, a list of

x x values
y y values
z z matrix

Author(s)

Ben Bolker

See Also

outer, curve

Examples



[Package emdbook version 1.0.9 Index]