R/examples/ex-layer_contourf.R

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))
kongdd/latticeGrob documentation built on March 30, 2024, 3:35 a.m.