contourRect: Draw Contours in a Rectangle

Description Usage Arguments

View source: R/det2.R

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

1
2
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].


detpack documentation built on July 24, 2019, 5:03 p.m.

Related to contourRect in detpack...