Skip to content

Commit c0d08e2

Browse files
committed
use is_null
1 parent 20a7e6b commit c0d08e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/scale-.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ ScaleDiscrete <- ggproto("ScaleDiscrete", Scale,
13151315
if (!is_null(pal_names)) {
13161316
# if pal is named, limit the pal by the names first,
13171317
# then limit the values by the pal
1318-
if (is.null(dim(pal))) {
1318+
if (is_null(dim(pal))) {
13191319
pal[is.na(match(pal_names, limits))] <- na_value
13201320
} else {
13211321
vec_slice(pal, is.na(match(pal_names, limits))) <- na_value

0 commit comments

Comments
 (0)