To create the scatter plot we add a layer with geom_point. The aesthetic mappings require us to define the x-axis and y-axis variables respectively. So the code looks like this:
except we have to define the two variables x and y. Fill this out with the correct variable names.
Note that if we don’t use argument names, we can obtain the same plot by making sure we enter the variable names in the right order like this:
Remake the plot but now with total in the x-axis and population in the y-axis.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here