plot3D: Function of 'Plot Three Dimensional Graph'

Description Usage Arguments Value Examples

View source: R/function_plot3D.R

Description

Function of 'Plot Three Dimensional Graph'

Usage

1
plot3D(x, y, f)

Arguments

x, y

Numeric vectors

f

A function

Value

a three dimensional graph

Examples

1
2
3
4
x <- seq(-10, 10, length = 30)
y <- x
f <- function(x, y){r <- sqrt(x ^ 2 + y ^ 2);10 * sin(r) / r}
plot3D(x, y, f)

zhaoxue-xmu/RDA documentation built on May 28, 2017, 12:47 p.m.