add_econodist_legend.Rd
Helper utility to get an econodist legend into a ggplot2 plot
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