Skip to content

Commit 24421d2

Browse files
author
Lindsay Carr
committed
must be explicit, otherwise user_args$y will grab user_args$ylab
1 parent f16fa4b commit 24421d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/set_args.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set_args <- function(fun.name, ..., custom.config = FALSE, package='graphics'){
1515
user_args <- function_args(name=fun.name, package=package, ...)
1616

1717
if(fun.name %in% c('points', 'lines')){
18-
xy_args <- xy.coords(x = user_args$x, y = user_args$y)
18+
xy_args <- xy.coords(x = user_args[['x']], y = user_args[['y']])
1919
user_args <- append_replace(user_args, xy_args)
2020
}
2121

0 commit comments

Comments
 (0)