filled_contour: Plot Filled Contours

Description Usage Arguments Examples

Description

Contrary to filled.contour, this function provides the atmoic function for contour shading in analogy with image and contour.

Usage

1
2
3
4
5
6
filled_contour(x = seq(0, 1, length.out = nrow(z)), y = seq(0, 1, length.out
  = ncol(z)), z, levels = pretty(zlim, 12), col = NULL, xlim = range(x),
  ylim = range(y), zlim = range(z[is.finite(z)]), add = FALSE,
  axes = TRUE, type = c("contour", "image"), col.axis = 1, col.box = 1,
  add.boundary = TRUE, col.contour = "grey", lty.contour = 1,
  lwd.contour = 1, drawlabels = FALSE, ...)

Arguments

x, y

Locations of grid cells for values of z.

z

Matrix containing the values to be plotted.

levels

Numeric vector of levels at which to draw contours.

col

Vector of colours to use for shading in between contours.

xlim, ylim, zlim

x- y- and z-limits for the plot.

add

Logical, hsould plot be added to existing plot?

axes

Logical, should axes and bounding box be drawn?

type

One of 'contour' or 'image' for contour and image plots respectively.

col.axis, col.box

Colour for axes and bounding box.

add.boundary

Logical, should filled contours be separated with a boundary line (drawn by contour)?

col.contour, lty.contour, lwd.contour

Colour, line type, and line width for boundary contours.

drawlabels

Logical, contours are labelled if TRUE.

...

Additional arguments to plot.window, title, Axis and box.

Examples

1
2
3
4
5
6
x <- seq(1,100)
y <- seq(1,80)
z <- outer(x,y, function(x,y) sin(x/10) + cos(y / 50))

# contour plot
filled_contour(x,y,z)

jonasbhend/myhelpers documentation built on May 19, 2019, 7:27 p.m.