View source: R/plotting-boxLegendGrob.R
boxLegendGrob | R Documentation |
Create a filled-box legend
boxLegendGrob(labels, fills, name = NULL, vp = NULL, gp = NULL)
labels |
Character, the legend labels |
fills |
Colors to fill the slices |
name , vp , gp |
Passed to grid::frameGrob |
Not yet exported. Need to break out the creation of viewports and grobs as done in the exported grobs. This will allow better grobEdit methods, which also needs to be created for the boxLegendGrob. Also need to do some input checks.
Also, if grid::legendGrob
gets updated to use the 'has.fill' option
this function should be removed and grid::legendGrob
can be used
instead.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.