Learn R Programming

spatialkernel (version 0.4-23)

risk.colors: Color Palette

Description

This color palette is designed to show risk levels with different colours from small risk (bright orange) to high risk (dark red).

Usage

risk.colors(n)

Arguments

n

number of colors (>= 1) to be in the palette.

See Also

metre, colors, and palette.

Examples

Run this code
# NOT RUN {
  ## risk pie with ten levels
  pie(rep(1,10), labels = seq(0.1, 1, 0.1), col = risk.colors(10))
# }

Run the code above in your browser using DataLab