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

22 lines
465 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/logo.R
\name{has_caption}
\alias{has_caption}
\title{Test whether a ggplot2 object has a caption}
\usage{
has_caption(gg)
}
\arguments{
\item{gg}{a gg object from ggplot2}
}
\value{
a logical, TRUE if a caption exists and FALSE if it does not
}
\description{
Test whether a ggplot2 object has a caption
}
\examples{
p1 <- ggplot2::qplot(mpg, wt, data = mtcars)
has_caption(p1) # FALSE
}