Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit
23 lines
530 B
R
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
|
|
}
|