Skip to content

Commit 2f9bfae

Browse files
authored
Merge pull request #2184 from MichaelChirico/patch-4
Use stored value of missing(nbreaks)
2 parents 69f8676 + 97700df commit 2f9bfae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/plot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ plot.sf <- function(x, y, ..., main, pal = NULL, nbreaks = 10, breaks = "pretty"
126126
nbreaks = length(breaks) - 1
127127
}
128128
}
129-
if (missing(nbreaks) && is.numeric(breaks))
129+
if (nbreaks.missing && is.numeric(breaks))
130130
nbreaks = length(breaks) - 1
131131

132132
# loop over each map to plot:

0 commit comments

Comments
 (0)