testCol {PBSmodelling} | R Documentation |
Display Colour Palette
Description
Provides a testing bed for displaying colours on a graph.
Colours can be specified in any of 3 different ways:
1) by a color name,
2) by a hexidecimal color code created by rgb()
or 3) by an index into the color palette.
Usage
testCol(cnam=colors()[1:20])
Arguments
cnam |
vector of colour names to display |
See Also
pickCol
Examples
testCol(c("sky","fire","sea","wood"))
testCol(c("plum","tomato","olive","peach","honeydew"))
testCol(rainbow(63))
#display all colours set in the colour palette
testCol(1:length(palette()))
#they can even be mixed
testCol(c("#9e7ad3", "purple", 6))
[Package
PBSmodelling version 0.60
Index]