Step-by-step lesson · RStudio
How to make a plot with ggplot2 in RStudio
- Type library(ggplot2)
- Type ggplot(data, aes(x = group, y = score)) +
- Add geom_boxplot() on the next line
- Run it; the plot appears in the Plots pane
More in RStudio
- How to run code in the console and in a script in RStudio
- How to install and load a package in RStudio
- How to filter and select data with dplyr in RStudio
- How to run a t-test in RStudio
- How to reshape data with tidyr in RStudio
- How to set the working directory in RStudio