Hello,
It seems that in section "13.10.2 Re-using your code: adding layers with..." one of the figures is currently not rendering properly:
## Error in `geom_point()`:
## ! Problem while computing aesthetics.
## ℹ Error occurred in the 1st layer.
## Caused by error in `scales_add_defaults()`:
## ! could not find function "scales_add_defaults"
Strangely, however, the same figure with the logarithmic scales produces correct output.
Do you know where the source of the problem "scales_add_defaults" is? My guess is that it is a ggplot2 >= 3.5 related issue, as I am having a similar one, but can't figure it and maybe by solving yours you have a clue.
Thank you,