Creates and shows and perspective plot of a 2D function of either the form z = f(x, y) or z = f(xv), where xv is a numeric of length 2.
1 2 | plotFunction3d(func = function(x) sum(x^2), lo = c(0, 0), up = c(1, 1),
samples = 10, palette = gray.colors(256), ...)
|
func |
A 2D function to plot. |
lo |
A vector of lower limits of the plot (one entry for each dimension). |
up |
A vector of upper limits of the plot (one entry for each dimension). |
samples |
The number of samples in each dimension. |
palette |
The color palette, use |
... |
Graphic parameters for |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.