Skip to content

Commit a239308

Browse files
author
Lindsay Carr
committed
lty and lwd should be NA for polygons and rectangles in legend, even if specified
1 parent 8f761d2 commit a239308

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/set_args.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ set_legend_args <- function(object, fun.name, ..., legend.name) {
101101

102102
} else if (fun.name %in% c("polygon", "rect")) {
103103
names(usr.args) <- replace(names(usr.args), which(names(usr.args)=="col"), "fill")
104+
usr.args$lty <- NA #lty and lwd should always be NA for polygon & rectangles in the legend
105+
usr.args$lwd <- NA
104106
fun.specific <- list(border=par("fg"))
105107
}
106108

0 commit comments

Comments
 (0)