-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generic function signatures so they match.
- Loading branch information
1 parent
03a2f0e
commit 25102e6
Showing
8 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#' Rotate a picture. | ||
#' | ||
#' @param picture A picture | ||
#' @param angle An angle | ||
#' @return Rotated picture | ||
#' @export | ||
rot <- function(picture, ...) { | ||
rot <- function(picture, angle) { | ||
UseMethod("rot", picture) | ||
} |