Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Include qplot() in ggplot lesson? #553
I'm debating whether it makes sense to include a short section on the qplot() function at the start/end of the ggplot() section. qplot() function is a very fast and easy way to plot graphs, and may be all many learners need (especially at first). For example, the following code using full ggplot syntax
can be rentered with qplot() as
which uses only 1 function call instead of 3 and follows more typical R syntax.
As far as I can tell the two ways are functionally equivalent, so that you can continue to add layers to the qplot() command if you want.
The biggest problem is that adding this would probably require shortening some other section of the lesson. (Though if it's at the end, probably less than if it's at the beginning because it would just be "here's this useful shortcut.") I'm not sure what I would cut, as everything there seems pretty important. So I'm asking for people's input: