Skip to content

Commit

Permalink
document widths/heights
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Sep 6, 2024
1 parent 5be98b1 commit 6047857
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/gtable.R
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ as.gtable.gtable <- function(x, ...) x

#' @export
#' @describeIn as.gtable Creates a 1-cell gtable containing the grob.
#' @param widths,heights Scalar unit setting the size of the table. Defaults
#' to [grid::grobWidth()] and [grid::grobHeight()] of `x` respectively.
as.gtable.grob <- function(x, widths = NULL, heights = NULL, ...) {
if (length(widths) > 1) {
widths <- widths[1]
Expand Down
3 changes: 3 additions & 0 deletions man/as.gtable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6047857

Please sign in to comment.