View source: R/panel.filledcontour.R
panel.filledcontour | R Documentation |
this panel function will create a smooth fill for a
levelplot
similar to filled.contour
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,
...
)
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 |
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 |
Tim Appelhans (modified from: http://grokbase.com/t/r/r-help/089fhk4km2/r-creating-smooth-color-regions-with-panel-contourplot)
library(latticeExtra)
data(volcano)
plot.new()
levelplot(volcano, panel = Rsenal:::panel.filledcontour,
at.contour = seq(100, 200, 20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.