From 5ba47aa783022da59b25a1c306f8984c9520434a Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 24 Oct 2023 12:26:09 +0200 Subject: [PATCH] https://github.com/easystats/performance/issues/382 --- R/plot.binned_residuals.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/plot.binned_residuals.R b/R/plot.binned_residuals.R index a6fbb5243..bbbfc8956 100644 --- a/R/plot.binned_residuals.R +++ b/R/plot.binned_residuals.R @@ -40,6 +40,8 @@ plot.see_binned_residuals <- function(x, x$ybar[x$group == "yes"] <- NA x$CI_low[x$group == "yes"] <- NA x$CI_high[x$group == "yes"] <- NA + # remove missing values, to avoid warning + x <- x[!is.na(x$ybar), ] } p <- ggplot2::ggplot(data = x, ggplot2::aes(x = .data$xbar)) +