Skip to content

Commit c0d7a48

Browse files
author
Jordan S Read
committed
lazyeval has trouble w/ arg=NULL
1 parent f9ecbff commit c0d7a48

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

R/rect.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ rect <- function(object, ...) {
4545
}
4646

4747
rect.gsplot <- function(object, ..., legend.name=NULL, side=c(1,2)){
48-
set_window_args(object, fun.name="rect", ..., legend.name=legend.name, side=side)
48+
fun.name <- "rect"
49+
to.gsplot <- list(list(arguments = set_args(fun.name, ...),
50+
gs.config=list(legend.name = legend.name, side = side))) %>%
51+
setNames(fun.name)
52+
53+
return(gsplot(append(object, to.gsplot)))
4954
}
5055

0 commit comments

Comments
 (0)