Skip to content

Commit

Permalink
Improved docs for the beside function. (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
MHenderson authored Mar 29, 2024
1 parent 0cdd588 commit 3fd5c36
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
13 changes: 9 additions & 4 deletions R/beside.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#' Superimpose two grobs side-by-side.
#' Superimpose two pictures side-by-side.
#'
#' @param p grob
#' @param q grob
#' `beside` returns a new picture made by placing the first input picture
#' beside the second input picture. The user can also provide arguments `m`
#' and `n` in which case the pictures will be placed so that they occupy the
#' output picture in a m:n ratio.
#'
#' @param p A `grid::grob` picture
#' @param q Another `grid::grob` picture
#' @param m An integer
#' @param n Another integer
#' @return A grob
#' @return A new `grid::grob` picture obtained by superimposing p and q, one beside the other.
#' @export
beside <- function(p, q, m = 1, n = 1) {
fg <- grid::frameGrob(layout = grid::grid.layout(1, 2))
Expand Down
13 changes: 8 additions & 5 deletions man/beside.Rd

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

0 comments on commit 3fd5c36

Please sign in to comment.