panel.filledcontour: create smooth contour fills for lattice levelplots

Description Usage Arguments Author(s) Examples

View source: R/panel.filledcontour.R

Description

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

Usage

1
2
3
4
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

1
2
3
4
5
6
7
library(latticeExtra)

data(volcano)

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

environmentalinformatics-marburg/Rsenal documentation built on Sept. 23, 2018, 5:17 a.m.