Course Notes: Forecasting in R
  • AI Chat
  • Code
  • Report
  • Beta
    Spinner
    # Load the ggplot2 library library(ggplot2) # Create a data frame data <- data.frame(x = c(1, 2, 3, 4, 5), y = c(2, 4, 6, 8, 10)) # Create a scatter plot using ggplot ggplot(data, aes(x = x, y = y)) + geom_point() + labs(title = "Scatter Plot", x = "X-axis", y = "Y-axis")
    # Write and run code here