change.colors: Color palettes to indicate change

View source: R/change.colors.R

change.colorsR Documentation

Color palettes to indicate change

Description

This function returns a list of color breaks and colors with white color showing no change and warm and cold colors for the positive and negative changes, respectively.

Usage

change.colors(x)

Arguments

x

A Raster* object

Author(s)

Chih-Lin Wei <chihlinwei@gmail.com>

Examples

# Changes in seafloor temperature at 2041 to 2060
col <- change.colors(subset(cimp5_2041_2060_ch,4))
mplot(subset(cimp5_2041_2060_ch,4), at=col$breaks, col.regions=col$col, main= expression(Temperature~(degree~C)))

chihlinwei/SCC85 documentation built on Sept. 15, 2023, 4:47 a.m.