The syntax for ggplot2 is well documented in the docs, with explicit visual examples for each code block: http://docs.ggplot2.org/current/
In contrast, base R graphics have little documentation (aside from function definitions in help) and few visual aids aside from old random blog posts.
Re:Ggplot2 2.2.0 coming soon
by uptownfunk on Monday October 03, 2016 @12:11PM
(#12628656)
Any good resources on understanding how ggplot2 works?? I always want to use it but am so pressed for time I just end up using tableau.
Honestly I'd focus on using it a couple times and the syntax should feel very natural afterwards. Understanding what the `aes` command is doing is the most important: it's mapping a set of features to the plot, and then you are adding various `geom` objects that visualize those features.
There is a book: http://ggplot2.org/book/ if you want to get more into the nitty gritty.
I have found this to be an excellent tutorial:
http://tutorials.iq.harvard.edu/R/Rgraphics/Rgraphics.html
It explains the use but also the philosophy and design pretty well.
I wish I could remember the syntax better. Every time I want to use ggplot2 I feel like this: https://xkcd.com/1168/
I have to google the syntax or look at my previous R code every time. I'd love to have some sort of interactive plot designer GUI built into RStudio that produced the R code.