library(oce)
# Example 1
imagep(volcano, col=oceColorsSalinity(128),
zlab="oceColorsSalinity")
if (FALSE) {
# Example 2 (requires the cmocean package)
imagep(volcano, col=cmocean::cmocean("matter"),
zlab="cmocean::cmocean(\"matter\")")}
if (FALSE) {
# Example 3 (requires the viridis package)
imagep(volcano, col=viridis::inferno,
zlab="viridis::inferno")}
Run the code above in your browser using DataLab