hadley / ggplot2-book

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

Fix to 6.2.2 to include dplyr #376

Open buildbetterguis opened 12 months ago

buildbetterguis commented 12 months 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 "%>%"