In R, type the plot() call that draws sales against ad spend from the stores frame — ad spend across, sales up, both axes labelled in k$.
In R, type the plot() call that draws sales against ad spend from the stores frame — ad spend across, sales up, both axes labelled in k$.
Answer
plot(storesadspend, storessales, xlab = "Ad spend (k)", ylab = "Sales (k)")
First argument is the horizontal axis. plot(storessales, storesadspend) draws the same points with the axes swapped and no warning.