Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document beside #43

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.