Description Usage Arguments See Also
View source: R/legend-helpers.R
Helper utility to get an econodist legend into a ggplot2 plot
1 2 3 | add_econodist_legend(gg, legend, below = "subtitle", just = c("left",
"center", "right"), legend_height = unit(16, "points"),
spacer = unit(10, "points"))
|
gg |
ggplot2 plot object to add |
legend |
legend grob (any grob, really) |
below |
which named gtable element to stick it below? |
just |
legend position: " |
legend_height |
height of the legend row |
spacer |
height of the spacer that is put below |
Other Econodist legend helpers: econodist_legend_grob
,
left_align
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.