You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
851 B
28 lines
851 B
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/legend-helpers.R
|
|
\name{add_econodist_legend}
|
|
\alias{add_econodist_legend}
|
|
\title{Helper utility to get an econodist legend into a ggplot2 plot}
|
|
\usage{
|
|
add_econodist_legend(gg, legend, below = "subtitle",
|
|
legend_height = unit(16, "points"), spacer = unit(10, "points"))
|
|
}
|
|
\arguments{
|
|
\item{gg}{ggplot2 plot object to add}
|
|
|
|
\item{legend}{legend grob (any grob, really)}
|
|
|
|
\item{below}{which named gtable element to stick it below?}
|
|
|
|
\item{legend_height}{height of the legend row}
|
|
|
|
\item{spacer}{height of the spacer that is put below \code{legend}?}
|
|
}
|
|
\description{
|
|
Helper utility to get an econodist legend into a ggplot2 plot
|
|
}
|
|
\seealso{
|
|
Other Econodist legend helpers: \code{\link{econodist_legend_grob}},
|
|
\code{\link{left_align}}
|
|
}
|
|
\concept{Econodist legend helpers}
|
|
|