When I run the following code I get an error: 1234 library(ggplot2) library(ggplot2movies) g <- ggplot(movies, aes(votes, rating)) print(g) I was expecting a scatterplot of ‘votes’ and ‘rating’ to appear. What’s the problem?

When I run the following code I get an error:

1234
library(ggplot2)
library(ggplot2movies)
g <- ggplot(movies, aes(votes, rating))
print(g)
I was expecting a scatterplot of ‘votes’ and ‘rating’ to appear. What’s the problem?

  • The object ‘g’ does not have a print method.
  • The dataset is too large and hence cannot be plotted to the screen.
  • There is a syntax error in the call to ggplot.
  • ggplot does not yet know what type of layer to add to the plot.

Get All Week Quiz Answer:

Exploratory Data Analysis Coursera Quiz Answer

Similar Posts