Hi - I keep receiving the following error when trying to complete a ggplot:
Error in +.gg
:
! Cannot use +
with a single argument
Did you accidentally put +
on a new line?
I've included my code below:
install.packages("ggplot2")
require("ggplot2")
Plot.nocenter_interaction<-ggplot(data=final, aes(x=final$lifesat, y=final$edu, color=public))+
+geom_point()+
+geom_smooth(method = "lm", se = FALSE)+
+ylab("edu")+
+xlab("lifesat")+
+ggtitle("Life Satisfaction by Education [Public vs Private]")+
+theme_bw()
I've tried adding/removing the "+" in about every possible way and still no luck! Any help is much appreeciated.