map_colour_brewer {ggplot}R Documentation

Aesthetic mapping: Brewer colours

Description

Map categorical variables to Brewer colour scales

Usage

map_colour_brewer(x, palette=1)

Arguments

x data vector
palette palette number to use

Details

If x is not a factor, will be converted to one by chop_auto. Can display at most 9 different categories.

Unordered factors will use qualitative scales. Ordered factors will use sequential scales. Ordered factors with negative level will use diverging scales.

Author(s)

Hadley Wickham <h.wickham@gmail.com>


[Package ggplot version 0.4.2 Index]