I am trying to create a scatter plot and when I run the code all I get is a single point to be displayed. My file name is: R_VonB_Nebish_SMB_Method1_2010_2015 , code is as follows;
ggplot(R_VonB_Nebish_SMB_Method1_2010_2015, aes(x ="SCALE.AGE", y ="ESTIMATE"))
geom_point()
CodePudding user response:
Don't pass the columns as strings:
ggplot(R_VonB_Nebish_SMB_Method1_2010_2015, aes(x=SCALE.AGE, y=ESTIMATE))
geom_point()