1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
\name{grid.draw.Legends}
\alias{grid.draw.Legends}
\title{
Draw the Legends
}
\description{
Draw the Legends
}
\usage{
\method{grid.draw}{Legends}(x, recording = TRUE)
}
\arguments{
\item{x}{The \code{\link[grid:grid.grob]{grob}} object returned by \code{\link{Legend}} or \code{\link{packLegend}}.}
\item{recording}{Pass to \code{\link[grid]{grid.draw}}.}
}
\details{
This function is actually an S3 method of the \code{Legends} class for the \code{\link[grid]{grid.draw}}
general method. It applies \code{\link[grid]{grid.draw}} on the \code{grob} slot of the object.
}
\examples{
lgd = Legend(at = 1:4, title = "foo")
pushViewport(viewport(x = unit(0, "npc"), y = unit(0, "npc"), just = c("left", "bottom")))
grid.draw(lgd)
popViewport()
}
|