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.
contourRect(xy, z, n = 20, zlb = 0, zub = 1,
color = grDevices::colorRamp(c("white", "black")))
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.
vector with four z-values at the four corner points.
abs(n)
gives the number of local or global contour levels. If n > 0
, n
local contours are drawn within [min(z),max(z)]
. If n < 0
, n
global contours result in [zlb,zub]
, but only the contours falling inside [min(z),max(z)]
are drawn.
determines the global range of z-values used to determine the contour colors. All values in z
have to be contained in [zlb,zub]
.
function to assign plot colors that is generated, e.g., by colorRamp
. color
returns a color based on an argument in [0,1]
.