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 above #42

Merged
merged 1 commit into from
Mar 28, 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/above.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#' Superimpose two grobs, one above the other.
#' Superimpose two pictures, one above the other.
#'
#' @param p A grob
#' @param q Another grob
#' `above` returns a new picture made by placing the first input picture
#' above 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 new grob obtained by superimposing p and q, one above the other.
#' @return A new `grid::grob` picture obtained by superimposing p and q, one above the other.
#' @export
above <- function(p, q, m = 1, n = 1) {
fg <- grid::frameGrob(layout = grid::grid.layout(2, 1))
Expand Down
13 changes: 8 additions & 5 deletions man/above.Rd

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