RTFM, perhaps? Or even worse, buy his book?
el — Sent from Dr Lisse’s iPad Mini 5 On 18 Nov 2020, 20:39 +0200, Ben Tupper <btup...@bigelow.org>, wrote: > Hi, > > I feel your pain. As you have likely discovered yourself, there are > just about 10^14 tutorials/posts/tips out there on ggplot2. See > https://rseek.org/?q=+ggplot2+tutorial for example. Yikes! > > One resource I found most helpful when I started is > https://evamaerey.github.io/ggplot_flipbook/ggplot_flipbook_xaringan.html#1. > This is a terrific resource for getting the feel of layering-up. > > Hope you find it helpful. > > CHeers, > Ben > > On Wed, Nov 18, 2020 at 12:37 PM C W <tmrs...@gmail.com> wrote: > > > > Dear R list, > > > > I am an old-school R user. I use apply(), with(), and which() in base > > package instead of filter(), select(), separate() in Tidyverse. The idea of > > pipeline (i.e. %>%) my code was foreign to me for a while. It makes the > > code shorter, but sometimes less readable? > > > > With ggplot2, I just don't understand how it is organized. Take this code: > > > > > ggplot(diamonds, aes(x=carat, y=price)) + geom_point(aes(color=cut)) + > > geom_smooth() > > > > There are three plus signs. How do you know when to "add" and what to > > "add"? I've seen more plus signs. > > > > To me, aes() stands for aesthetic, meaning looks. So, anything related to > > looks like points and smooth should be in aes(). Apparently, it's not the > > case. > > > > So, how does ggplot2 work? Could someone explain this for an old-school R > > user? > > > > Thank you! > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > -- > Ben Tupper > Bigelow Laboratory for Ocean Science > East Boothbay, Maine > http://www.bigelow.org/ > https://eco.bigelow.org > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.