File: dim.flextableGrob.Rd

package info (click to toggle)
r-cran-flextable 0.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,264 kB
  • sloc: sh: 15; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grid_grobs.R
\name{dim.flextableGrob}
\alias{dim.flextableGrob}
\title{Get optimal width and height of a flextable grob}
\usage{
\method{dim}{flextableGrob}(x)
}
\arguments{
\item{x}{a flextableGrob object}
}
\value{
a named list with two elements, \code{width} and \code{height}.
Values are expressed in inches.
}
\description{
returns the optimal width and height for the grob,
according to the grob generation parameters.
}
\examples{
ftab <- flextable(head(iris))
gr <- gen_grob(ftab)
dim(gr)
}