Another important variation on this for Histograms developed in 2019.
The computation was updated and includes something - excuse me for maybe oversimplifying -
like creating bins according to the limit=()
specification on your binning axis,
and if this is wider than your data,
- it creates bars with 0 frequency
- it creates this same warning for those bars
– a completely different problem than clipping your data but with the same message.
The ggplot developers suggested in github handling this a few different ways,https://github.com/tidyverse/ggplot2/issues/3265
https://github.com/tidyverse/ggplot2/issues/4083