panel.filledcontour: create smooth contour fills for lattice levelplots

View source: R/panel.filledcontour.R

panel.filledcontourR Documentation

create smooth contour fills for lattice levelplots

Description

this panel function will create a smooth fill for a levelplot similar to filled.contour

Usage

panel.filledcontour(
  x,
  y,
  z,
  subscripts,
  fill.contours = TRUE,
  at,
  contours = TRUE,
  at.contours = NULL,
  col.regions = cm.colors,
  col = col.regions(length(at) - 1),
  col.contours = "black",
  lty.contours = 1,
  lwd.contours = 1,
  draw.labels = TRUE,
  ...
)

Arguments

x

vector

y

vector

z

vector

subscripts

optional

fill.contours

should regions between contours be (colour) filled?

at

sequence for the fill contours

contours

should contour lines be drawn?

at.contours

sequence for the contour lines

col.regions

colour palette for filling

col

set of colours passed on to filled.contour

col.contours

colour of contour lines

lty.contours

linetype of contour lines

lwd.contours

size of contours

draw.labels

should labels be drawn along the contour lines?

...

currently not used

Author(s)

Tim Appelhans (modified from: http://grokbase.com/t/r/r-help/089fhk4km2/r-creating-smooth-color-regions-with-panel-contourplot)

Examples

library(latticeExtra)

data(volcano)

plot.new()
levelplot(volcano, panel = Rsenal:::panel.filledcontour,
          at.contour = seq(100, 200, 20))


environmentalinformatics-marburg/Rsenal documentation built on July 28, 2023, 6:09 a.m.