Creates a ribbon legend; a vertical bar broken into several colored cells, with an axis on the right-hand side.
ribbonLegend(nlevels=NULL, breaks=NULL, cols,
scale=range(breaks),
margin=unit(0.5, "line"),
gp=NULL, vp=NULL, name=NULL)
Number of levels to be represented in the legend, specifed either as a number of (equal-sized) levels, or the break points between levels.
The colors to be used for each level.
The range of the scale on the legend.
Space around the edges of the legend.
A character name for the grob.
A gpar
object containing graphical parameter settings
or NULL
.
A viewport or NULL
.