Download the IDE from the Posit Website . How to Download and Install ggplot2 from CRAN
# Install ggplot2 directly from CRAN install.packages("ggplot2") Use code with caution. Method 2: Installing as Part of the Tidyverse download ggplot2 from cran
library(ggplot2) # Create a scatter plot using the mpg dataset ggplot(data = mpg, aes(x = displ, y = hwy, color = class)) + geom_point() + labs(title = "Engine Displacement vs. Highway MPG", x = "Engine Displacement (L)", y = "Highway Miles per Gallon") + theme_minimal() Use code with caution. Download the IDE from the Posit Website