colorstrip

Description

strip of colors

Usage

1
2
colorstripGrob(fill=1:3, colour=fill, draw=TRUE,
    raster=FALSE, direction=c("vertical", "horizontal"))

Arguments

fill

vector of colours

colour

vector of colours

draw

logical

direction

direction (horizontal or vertical)

raster

logical, use grid.raster (with interpolation)

Value

a grob

See Also

grid.rect

Examples

1
2
3
4
5
6
colorstripGrob()
## Not run: 
require(RColorBrewer)
colorstripGrob(brewer.pal(3, "Set1"))

## End(Not run)