Description Details Author(s) Examples
An analogue to curve() for functions of two variables. Functions can be visualized using heatmaps or 3D surfaces.
Package: | curve3D |
Type: | Package |
Version: | 0.1-1 |
Date: | 2011-03-21 |
License: | Artistic-2.0 |
LazyLoad: | yes |
John Myles White
Maintainer: John Myles White <jmw@johnmyleswhite.com>
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.