gridExtra (version 0.8.5)

colorstripGrob: colorstrip

Description

strip of colors

Usage

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

Run this code
colorstripGrob()
require(RColorBrewer)
colorstripGrob(brewer.pal(3, "Set1"))

Run the code above in your browser using DataCamp Workspace