hadley / ggplot2-book

ggplot2: elegant graphics for data analysis
https://ggplot2-book.org/
1.57k stars 683 forks source link

Fix to 6.2.2 to include dplyr #376

Open buildbetterguis opened 1 year ago

buildbetterguis commented 1 year ago

The code for sydney maps in section 6.2.2 needs to have the following code added -

library(dplyr)

Else users will end up with below error -

Error in ozmaps::abs_ced %>% filter(NAME %in% c("Sydney", "Wentworth",  : 
  could not find function "%>%"