BoAcharai › Lessons › RStudio

Step-by-step lesson · RStudio

How to make a plot with ggplot2 in RStudio

4 steps

  1. Type library(ggplot2)
  2. Type ggplot(data, aes(x = group, y = score)) +
  3. Add geom_boxplot() on the next line
  4. Run it; the plot appears in the Plots pane

More in RStudio

All RStudio lessons