Home > OS >  R Scatter Plot Issue
R Scatter Plot Issue

Time:08-28

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()
  • Related