-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
* Fix generic function signatures so they match. * Fix a couple more function signatures. * Update docs. * A few small documentation corrections. * Another documentation fix.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
#' Superimpose two pictures, one above the other. | ||
#' | ||
#' @param p A picture | ||
#' @param q Another picture | ||
#' @param m An integer | ||
#' @param n Another integer | ||
#' @return A picture | ||
#' @export | ||
above <- function(picture, ...) { | ||
UseMethod("above", picture) | ||
above <- function(p, q, m, n) { | ||
UseMethod("above") | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#' Superimpose two grobs, side-by-side. | ||
#' | ||
#' @param p A picture | ||
#' @param p grob | ||
#' @param q grob | ||
#' @param m An integer | ||
#' @param n Another integer | ||
#' @return A grob | ||
#' @return A picture | ||
#' @export | ||
beside <- function(picture, ...) { | ||
UseMethod("beside", picture) | ||
beside <- function(p, q, m = 1, n = 1) { | ||
UseMethod("beside", p) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#' Flip a picture. | ||
#' | ||
#' @param picture A picture | ||
#' @param g A picture | ||
#' @return Flipped picture | ||
#' @export | ||
flip <- function(picture, ...) { | ||
UseMethod("flip", picture) | ||
flip <- function(g) { | ||
UseMethod("flip", g) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#' plot.picture | ||
#' | ||
#' @param picture A picture | ||
#' @param x A picture | ||
#' @param ... Anything else. | ||
#' @return grid.draw(picture) | ||
#' @export | ||
plot.picture <- function(picture) { | ||
grid::grid.draw(picture) | ||
plot.picture <- function(x, ...) { | ||
grid::grid.draw(x) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#' Rotate a picture. | ||
#' | ||
#' @param picture A picture | ||
#' @param g A picture | ||
#' @param angle An angle | ||
#' @return Rotated picture | ||
#' @export | ||
rot <- function(picture, ...) { | ||
UseMethod("rot", picture) | ||
rot <- function(g, angle) { | ||
UseMethod("rot", g) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.