Skip to content

Commit f16fa4b

Browse files
author
Lindsay Carr
committed
indexing allowed for points and lines
1 parent e839398 commit f16fa4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/set_args.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ set_args <- function(fun.name, ..., custom.config = FALSE, package='graphics'){
1414
config_args <- config(fun.name, custom.config = custom.config)
1515
user_args <- function_args(name=fun.name, package=package, ...)
1616

17+
if(fun.name %in% c('points', 'lines')){
18+
xy_args <- xy.coords(x = user_args$x, y = user_args$y)
19+
user_args <- append_replace(user_args, xy_args)
20+
}
21+
1722
indicesToAdd <- !(names(config_args) %in% names(user_args))
1823
arguments <- append(user_args, config_args[indicesToAdd])
1924
return(arguments)

0 commit comments

Comments
 (0)