Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace deprecated "by" aes with "group"
The "by" aesthetic in ggplot2 is no longer supported. Although it still works, it throws a warning like: `> ggplot(gapminder, aes(x=year,y=lifeExp)) + + geom_point(alpha=0.5) + + scale_x_log10() + + geom_line(aes(color=continent, by=country)) Warning message: In geom_line(aes(color = continent, by = country)) : Ignoring unknown aesthetics: by` I can't find any documentation in the official reference (e.g. https://ggplot2.tidyverse.org/reference/index.html#aesthetics) for `by`. Instead, `group` is used. I tried to update all code chunks with the `by` aesthetic and also change related text where I found it. I tried to search the remainder of the lessons and didn't find it anywhere.
- Loading branch information