Steven
Steven

Reputation: 3

R Scatter Plot Issue

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

Upvotes: 0

Views: 52

Answers (1)

OliverHennhoefer
OliverHennhoefer

Reputation: 979

Don't pass the columns as strings:

ggplot(R_VonB_Nebish_SMB_Method1_2010_2015, aes(x=SCALE.AGE, y=ESTIMATE)) +
  geom_point()

Upvotes: 1

Related Questions