Download and Install R
Visit CRAN and install R version 4.1 or later for your OS.
Install RStudio
Download free RStudio Desktop from Posit.
Install ggplot2 (version 4.0.2)
Open RStudio console and run:
install.packages("ggplot2")
library(ggplot2)
Test Installation
Load built-in mpg dataset and create first plot:
ggplot(mpg, aes(x = displ, y = hwy)) +
geom_point()
Expect a scatterplot in the Plots pane.