contourRect {detpack}R Documentation

Draw Contours in a Rectangle

Description

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.

Usage

contourRect(xy, z, n = 20, zlb = 0, zub = 1,
  color = grDevices::colorRamp(c("white", "black")))

Arguments

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

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.

zlb, zub

determines the global range of z-values used to determine the contour colors. All values in z have to be contained in [zlb,zub].

color

function to assign plot colors that is generated, e.g., by colorRamp. color returns a color based on an argument in [0,1].


[Package detpack version 1.1.3 Index]