Files
civilyticsR/man/measure_caption.Rd
T
2020-07-06 11:48:10 -04:00

23 lines
521 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/logo.R
\name{measure_caption}
\alias{measure_caption}
\title{Measure a ggplot2 object caption}
\usage{
measure_caption(gg)
}
\arguments{
\item{gg}{a ggplot object}
}
\value{
a numeric value stating the number of lines to be added or subtracted to align a logo with
the caption
}
\description{
Measure a ggplot2 object caption
}
\examples{
p1 <- qplot(mpg, wt, data = mtcars)
measure_caption(p1) # Should equal 1 since no caption is required
}