fork download
  1. # Load the ggplot2 library
  2. library(ggplot2)
  3.  
  4. # Create a scatter plot of mpg vs wt
  5. ggplot(mtcars, aes(x = wt, y = mpg)) +
  6. geom_point() +
  7. labs(title = "Scatter Plot of MPG vs WT", x = "Weight (1000 lbs)", y = "Miles per Gallon")
Success #stdin #stdout 0.92s 60516KB
stdin
Standard input is empty
stdout
Standard output is empty