Skip to content

Commit 321b300

Browse files
authored
missing contour parameter defaults to TRUE (#6222)
1 parent 0b67516 commit 321b300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/stat-density-2d.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ StatDensity2d <- ggproto("StatDensity2d", Stat,
143143
data <- ggproto_parent(Stat, self)$compute_layer(data, params, layout)
144144

145145
# if we're not contouring we're done
146-
if (!isTRUE(params$contour)) return(data)
146+
if (!isTRUE(params$contour %||% TRUE)) return(data)
147147

148148
# set up data and parameters for contouring
149149
contour_var <- params$contour_var %||% "density"

0 commit comments

Comments
 (0)