Skip to content

Commit 09faf05

Browse files
committed
StatBindot: handle missing values when binaxis=y. Closes #1390
1 parent 1fc3d2a commit 09faf05

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

R/stat-bindot.r

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ StatBindot <- ggproto("StatBindot", Stat,
1414
params
1515
},
1616

17+
compute_layer = function(self, data, params, panels) {
18+
data <- remove_missing(data, params$na.rm,
19+
params$binaxis,
20+
snake_class(self),
21+
finite = TRUE
22+
)
23+
ggproto_parent(Stat, self)$compute_layer(data, params, panels)
24+
},
25+
1726
compute_panel = function(self, data, scales, na.rm = FALSE, binwidth = NULL,
1827
binaxis = "x", method = "dotdensity",
1928
binpositions = "bygroup", origin = NULL,

0 commit comments

Comments
 (0)