15.1 Introduction

We’ll show how to make scatterplots using the “quick plot” function (qplot) from ggplot2. ggplot2::qplot and ggpubr both offer simplified plotting using tools from ggplot2’s toolkit. ggpubr implements a different syntax, though, while qplot use more standard ggplot2 idioms and so is a good way to get a sense for the full power of ggploting.

Learning goals & outcomes

  • Make scatter plots : )

Functions & Arguements

  • library
  • names
  • qplot
  • data
  • dim
  • head
  • summary
  • factor
  • log

Packages

  • ggplot2
  • cowplot

Potential hangups

There are many ways to make plots in R: ggplot, qplot, ggpubr, plot; and I’m leaving a few out. Moving between them is meant to give you a sense for the different tools so you can recognize them “in the wild” on the internet and in books. We’ll transition to focusing on ggpubr soon.