Files
civilyticsR/man/measure_caption.Rd
T
Jared Knowles 4a2cd9e1dd
Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit
refresh doco
2022-10-16 19:17:38 -04:00

23 lines
530 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 <- ggplot2::qplot(mpg, wt, data = mtcars)
measure_caption(p1) # Should equal 1 since no caption is required
}