Skip to content

Commit 3db6762

Browse files
committed
OCD seealso
1 parent f3c5674 commit 3db6762

34 files changed

+79
-12
lines changed

R/abline.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#'
1717
#'
1818
#' @export
19+
#' @seealso \code{\link[graphics]{abline}}
1920
#' @examples
2021
#' gs <- gsplot()
2122
#' gsNew <- points(gs, y=1, x=2, col="blue", pch=18, legend.name="Points")

R/arrows.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' gsplot arrows
22
#'
3-
#' Creates an arrow pointing at a specified plot location. See \code{\link[graphics]{arrows}} for more details.
3+
#' Creates an arrow pointing at a specified plot location. See \code{\link[graphics]{arrows}} for more details.
44
#'
55
#' @param object gsplot object
66
#' @param \dots Further graphical parameters may also be supplied as arguments. See 'Details'.
@@ -14,6 +14,7 @@
1414
#' }
1515
#'
1616
#' @export
17+
#' @seealso \code{\link[graphics]{arrows}}
1718
#' @examples
1819
#' gs <- gsplot() %>%
1920
#' points( y=c(3,1,2), x=1:3, xlim=c(0,NA),ylim=c(0,NA),

R/axis.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#' }
1313
#'
1414
#' @rdname axis
15+
#' @seealso \code{\link[graphics]{axis}}
1516
#' @export
1617
#' @examples
1718
#' gs <- gsplot() %>%

R/curve.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#' }
2424
#'
2525
#' @rdname curve
26+
#' @seealso \code{\link[graphics]{curve}}
2627
#' @export
2728
#' @importFrom lazyeval lazy lazy_eval
2829
#' @examples

R/grid.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#' @param \dots Further graphical parameters may also be supplied as arguments
77
#'
88
#' @export
9+
#' @seealso \code{\link[graphics]{grid}}
910
#' @examples
1011
#' gs <- gsplot()
1112
#' gsNew <- points(gs, y=1, x=2, xlim=c(0,NA),ylim=c(0,NA),

R/gsplot-class.R

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
#'
55
#' @param x list
66
#' @param \dots Further graphical parameters may also be supplied as arguments. See 'Details'.
7-
#' @param config.file path to config yaml for individual gsplot object
8-
#' @param theme path to theme
7+
#' @param config.file path to config yaml for individual gsplot object. Default is \code{NA} and means config options are taken from options.
8+
#' @param theme path to theme for individual gsplot object. Default is \code{NA} and means no theme.
9+
#' @param frame.plot logical. Defaults to \code{TRUE}
910
#' @return gsplot
1011
#' @export
1112
#' @rdname gsplot
@@ -15,9 +16,10 @@ gsplot <- function(x = NULL, ...) UseMethod("gsplot")
1516

1617
#' @rdname gsplot
1718
#' @export
18-
gsplot.default <- function(...,config.file=NA, theme=NA) {
19-
object <- gsplot(list(global=list('config'=list(frame.plot=TRUE,
20-
config.file=!is.na(config.file)))))
19+
gsplot.default <- function(...,config.file=NA, theme=NA, frame.plot=TRUE) {
20+
object <- gsplot(list(global=list('config'=list(frame.plot=frame.plot,
21+
config.file=!is.na(config.file),
22+
theme=!is.na(theme)))))
2123

2224
if (!is.na(config.file)){
2325
load_temp_config(config.file)

R/legend.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#' density, pt.bg, pt.cex, pt.lwd, text.col, text.font}
2323
#'
2424
#' @export
25+
#' @seealso \code{\link[graphics]{legend}}
2526
#' @importFrom graphics par
2627
#' @examples
2728
#'

R/lines.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#' \item{\code{callouts}} {add callouts and text to the defined line, see \code{\link{callouts}}
1717
#' for arguments, must add arguments as a list}
1818
#' }
19+
#' @seealso \code{\link[graphics]{lines}}
1920
#'
2021
#' @examples
2122
#' gsNew <- gsplot()

R/mtext.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#' }
1414
#'
1515
#' @export
16+
#' @seealso \code{\link[graphics]{mtext}}
1617
#' @examples
1718
#' gs <- gsplot()
1819
#' gsNew <- points(gs, y=1, x=2, col="blue", pch=18, legend.name="Points")

R/par.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#' @param object gsplot object
99
#' @param \dots Further graphical parameters may also be supplied as arguments. See \code{\link[graphics]{par}}
1010
#'
11-
#'
11+
#' @seealso \code{\link[graphics]{par}}
1212
#' @export
1313
#' @examples
1414
#' gs2 <- gsplot(new=TRUE,mar=c(5,4,1,2)) %>%

0 commit comments

Comments
 (0)