Learn R Programming

agridat (version 1.8.1)

RedGrayBlue: Function to create a Red-Gray-Blue palette

Description

Function to create a Red-Gray-Blue palette

Usage

RedGrayBlue(n)

Arguments

n
Number of colors to create

Value

  • A vector of n colors.

Details

Function to create a Red-Gray-Blue palette. Using gray instead of white allows missing values to appear as white (transparent).

Examples

Run this code
pie(rep(1,11), col=RedGrayBlue(11))

Run the code above in your browser using DataLab