curve3D-package: An analogue to curve() for functions of two variables.

Description Details Author(s) Examples

Description

An analogue to curve() for functions of two variables. Functions can be visualized using heatmaps or 3D surfaces.

Details

Package: curve3D
Type: Package
Version: 0.1-1
Date: 2011-03-21
License: Artistic-2.0
LazyLoad: yes

Author(s)

John Myles White

Maintainer: John Myles White <jmw@johnmyleswhite.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
library('curve3D')

g <- function(x, y) {(1 + y * 2) ^ (-x / y) * (1 + y * 1) ^ (x / y)}

curve3D(g, from.x = 0.01, to.x = 1, from.y = 0.01, to.y = 1, heatmap = FALSE)
curve3D(g, from.x = 0.01, to.x = 1, from.y = 0.01, to.y = 1, heatmap = TRUE)

h <- function(x, y) {x ^ 2 + y ^ 2}

curve3D(h, from.x = 0.01, to.x = 1, from.y = 0.01, to.y = 1, heatmap = FALSE)
curve3D(h, from.x = 0.01, to.x = 1, from.y = 0.01, to.y = 1, heatmap = TRUE)

i <- function(x, y) {sin(x) + sin(y)}

curve3D(i, from.x = 1, to.x = 10, from.y = 1, to.y = 10, heatmap = FALSE)
curve3D(i, from.x = 1, to.x = 10, from.y = 1, to.y = 10, heatmap = TRUE)

j <- function(x, y) {x + y + x * y}

curve3D(j, from.x = 1, to.x = 10, from.y = 1, to.y = 10, heatmap = FALSE)
curve3D(j, from.x = 1, to.x = 10, from.y = 1, to.y = 10, heatmap = TRUE)

johnmyleswhite/curve3D documentation built on May 19, 2019, 5:17 p.m.