Skip to content

Commit f5aed29

Browse files
author
Jordan S Read
committed
for #351
1 parent 97729e7 commit f5aed29

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

R/modify_legend.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ add_to_legend <- function(object, fun.name, legend.name, call.args, option.args)
5454
#' @param fun.name
5555
#' @param call.args
5656
#' @param legend.name
57-
#' @param .dots lazy_dots
57+
#' @param option.args args extracted out as options
5858
#' @keywords internal
59-
get_legend_args <- function(fun.name, call.args, legend.name, ...){
59+
get_legend_args <- function(fun.name, call.args, legend.name, option.args){
6060

6161
fun.default <- list(legend=legend.name,
6262
fill=quote(par("bg")),
@@ -108,7 +108,7 @@ get_legend_args <- function(fun.name, call.args, legend.name, ...){
108108
fun.specific <- list(border=par("fg"))
109109
}
110110

111-
usr.args <- call.args[which(names(call.args) %in% names(fun.default))]
111+
usr.args <- c(call.args[which(names(call.args) %in% names(fun.default))], option.args[which(names(option.args) %in% names(fun.default))])
112112
fun.all <- replace(fun.default, match(names(fun.specific), names(fun.default)), fun.specific)
113113
add.args <- fun.all[!names(fun.all) %in% names(usr.args)]
114114
fun.legend.args <- append(usr.args, add.args)

man/get_legend_args.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)