The function contourRect
draws the z contour levels of a rectangular domain in x-y-space with z-values given at the corners of the rectangle.
1 2 | contourRect(xy, z, n = 20, zlb = 0, zub = 1,
color = grDevices::colorRamp(c("white", "black")))
|
xy |
matrix with two rows and four columns containing x- and y-coordinates of the four corner points of the rectangle. The corner points are ordered in clockwise or counter-clockwise direction. |
z |
vector with four z-values at the four corner points. |
n |
|
zlb, zub |
determines the global range of z-values used to determine the contour colors. All values in |
color |
function to assign plot colors that is generated, e.g., by |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.