% 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 }