Skip to content

Commit 9886905

Browse files
authored
Merge pull request #288 from annariha/patch-1
Fix plot_diagnostic(..., label_points = TRUE)
2 parents b94b2b1 + 230affa commit 9886905

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/diagnostics.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@ plot_diagnostic <-
365365
col = clrs, pch = 3, cex = .6)
366366
return(invisible())
367367
} else {
368-
graphics::points(x = if (use_n_eff) n_eff[k < threshold] else k[k < threshold],
368+
graphics::points(x = which(k < threshold),
369+
y = if (use_n_eff) n_eff[k < threshold] else k[k < threshold],
369370
col = clrs[k < threshold], pch = 3, cex = .6)
370371
sel <- !in_range(k, breaks[1:2])
371372
dots <- list(...)

0 commit comments

Comments
 (0)