man/max_text_height.rd
076c1ff2
 \name{max_text_height}
 \alias{max_text_height}
 \title{
 Maximum height of text
 }
 \description{
 Maximum height of text
 }
 \usage{
 max_text_height(text, ...)
 }
 \arguments{
 
   \item{text}{a vector of text}
   \item{...}{pass to \code{\link[grid]{textGrob}}}
 
793b75de
 }
 \details{
 Simply calculate maximum height of a list of \code{\link[grid]{textGrob}} objects.
076c1ff2
 }
12e85497
 \value{
 A \code{\link[grid]{unit}} object.
 }
793b75de
 \seealso{
 \code{\link{max_text_height}} is always used to calculate the size of viewport when there is text annotation (\code{\link{anno_text}})
 }
12e85497
 \author{
 Zuguang Gu <z.gu@dkfz.de>
 }
 \examples{
793b75de
 x = c("a", "b\nb", "c\nc\nc")
 max_text_height(x, gp = gpar(fontsize = 10))
12e85497
 }