Learn R Programming

desplot (version 1.10)

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

Description

A function to create a Red-Gray-Blue palette.

Usage

RedGrayBlue(n)

Value

A vector of n colors.

Arguments

n

Number of colors to create

Author

Kevin Wright

Details

Using gray instead of white allows missing values to appear as white (actually, transparent).

Examples

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

Run the code above in your browser using DataLab