It seems you somehow updated the ggplot2
package without updating the scales
package. install.packages("scales")
should fix the error. More generally, if you haven't updated packages in a while, you might want to try the "Update" button in the Packages tab of RStudio and consider updating other packages as well.
15 Likes