As the 3rd edition (https://ggplot2-book.org/) is a work-in-progress, there are bound to be these changes. I will probably change the code to match the new structure when the 3rd edition is 'finished'.