You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a slightly contrived example, but the bar's width calculation can be chatty when there is a factor level in the PANEL that has 0 rows in the data.
library(ggplot2)
df<-mpgdf$drv<-factor(df$drv, c("4", "f", "r"))
ggplot(subset(df, drv!="4"), aes(cyl, cty)) +
geom_col() +
facet_wrap(~drv, drop=FALSE)
#> Warning in min(x): no non-missing arguments to min; returning Inf#> Warning in max(x): no non-missing arguments to max; returning -Inf#> Warning in min(d[d > tolerance]): no non-missing arguments to min; returning#> Inf
Activity
teunbrand commentedon Jan 15, 2024
Considered closed by #5633.
averissimo commentedon Dec 18, 2025
There has been a regreesion and this error is still present on4.0.1when running the reprex I get the exact same warnings.edit: nevermind, it's not present on the development branch so it must've been fixed.
teunbrand commentedon Dec 18, 2025
Yes #6759 took care of this :)