View source: R/utilities-legend.R
setLegend | R Documentation |
Set legend position, title, font and/or caption
setLegend(
plotObject,
position = NULL,
title = NULL,
font = NULL,
caption = NULL
)
plotObject |
Graphical object created from ggplot |
position |
legend position.
Use enum |
title |
character or |
font |
|
caption |
data.frame containing the caption properties of the legend |
A ggplot
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.