colorstripGrob: colorstrip

Description Usage Arguments Value See Also Examples

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)


Search within the gridExtra package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.