for reference I am using library(gssr)
Hi, I am doing homework for a class, and I have been stuck on this forever!
Can I get some help? ASAP!
ggplot(gss_2010, (aes(x=mntlhlth, y=abany, color=factor(happy))))+geom_jitter(alpha=0.4, height=5)+geom_smooth(method=lm,se=F, linetype="dashes")+geom_smooth(method=glm, method.args=list(family=binomial),se=F)
keep getting an error: Aesthetics must be either length 1 or the same as the data (2044): y