Description Usage Arguments Value See Also Examples
strip of colors
1 2 | colorstripGrob(fill=1:3, colour=fill, draw=TRUE,
raster=FALSE, direction=c("vertical", "horizontal"))
|
fill |
vector of colours |
colour |
vector of colours |
draw |
logical |
direction |
direction (horizontal or vertical) |
raster |
logical, use grid.raster (with interpolation) |
a grob
1 2 3 4 5 6 | colorstripGrob()
## Not run:
require(RColorBrewer)
colorstripGrob(brewer.pal(3, "Set1"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.