The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Beautiful colormaps for oceanography: cmocean

This package contains an R version of the cmocean color palettes for oceanography, developed originally for python by Kristen Thyng. The important detail of all the cmocean palettes is that they are all perceptually uniform.

Users interested in the the details of the original package development should consult the publication: Thyng, K. M., Greene, C. A., Hetland, R. D., Zimmerle, H. M., & DiMarco, S. F. (2016). True colors of oceanography. Oceanography, 29(3), 10.

Examples:

The functions that return the colors are accessed using the cmocean() function, where the first argument is the name of the desired palette.

We can make a simple function to display the palette colors:

library(cmocean)
plot_cm <- function(name, n=256) {
    z <- matrix(seq(0, 1, length.out=n))
    image(z, col=cmocean(name)(n), axes=FALSE)
    mtext(name, 3, adj=0)
}

Below are examples of each of the cmocean palettes. Many more examples are provided at https://matplotlib.org/cmocean/

palettes

Data examples:

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.