Below is my explanation for why it is really important to map “Rating” to the vertical axis and “Budget” to the horizontal axis

  1. According to the general convention in scatter plots, the independent variable is placed on the x-axis, and the dependent variable is placed on the y-axis.
  2. Also as IMDb ratings are on a fixed scale from 0 to 10, the budget variable, with its wide range of possible values, can accommodate an infinite number of observations on the x-axis, allowing us to visualize a broad distribution of budget values for any given rating.
library(ggplot2)
library(ggplot2movies)

ggplot(data = movies, mapping = aes(x = budget, y = rating)) + geom_point()
## Warning: Removed 53573 rows containing missing values or values outside the scale range
## (`geom_point()`).