Skip to content

Commit

Permalink
Improved docs for the flip function. (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
MHenderson authored Mar 28, 2024
1 parent 17f66ea commit 30ed168
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
9 changes: 6 additions & 3 deletions R/flip.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#' Flip a grob.
#' Flip a picture
#'
#' @param g A grob
#' @return Flipped grob
#' `flip` returns a new picture made by flipping the input picture along
#' its vertical centre axis.
#'
#' @param g A `grid::grob` picture
#' @return A flipped `grid::grob` picture
#' @export
flip <- function(g) {
grid::editGrob(g, x = grid::unit(1, "npc") - g$x)
Expand Down
9 changes: 5 additions & 4 deletions man/flip.Rd

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

0 comments on commit 30ed168

Please sign in to comment.