View source: R/layer_contourf.R
layer_contourf | R Documentation |
layer of contourf
layer_contourf(
at = NULL,
col = NULL,
col.regions = NULL,
contour = TRUE,
region = FALSE,
labels = FALSE,
label.style = c("mixed", "flat", "align"),
format = "%f",
...
)
at |
Numeric vector giving breakpoints along the range of
|
col.regions |
A vector of colors, or a function to produce a vecor of colors, to
be used if |
contour |
A logical flag, specifying whether contour lines should be drawn. |
region |
A logical flag, specifying whether inter-contour regions should be filled with appropriately colored rectangles. |
labels |
Either a logical scalar indicating whether the labels are to be
drawn, or a character or expression vector giving the labels
associated with the
|
label.style |
Controls how label positions and rotation are determined. A value
of |
... |
other parameters to |
the parameter brks
was renamed as at
lattice::panel.levelplot()
cols <- get_color("Blues")
print(lattice(z ~ x * y, dvolcano) +
layer_contourf(
labels = TRUE, format = "%.0f",
col = "black", lwd = 0.2, lty = 2, region = FALSE))
print(lattice(z ~ x * y, dvolcano) +
layer_contourf(labels = TRUE, format = "%.0f", col = cols, region = FALSE))
print(lattice(z ~ x * y, dvolcano) +
layer_contourf(labels = TRUE, format = "%.0f", region = FALSE))
print(lattice(z ~ x * y, dvolcano) +
layer_contourf(labels = TRUE, format = "%.1f", region = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.