search for: iqdata

Displaying 1 result from an estimated 1 matches for "iqdata".

Did you mean: i_data
2011 Nov 10
2
plotting a function with given formula in ggplot2
...ng that curve() does in the standard R plotting). I did some search and found that stat_function() can be used for this. But somehow it is not working. The following is my code. Can you please tell me where I am going wrong and what the correct code would be: reg1 <- lm(kid_score ~ mom_hs, data=iqdata) scatter <- ggplot() + geom_point(data=iqdata, aes(x=as.factor(mom_hs), y=kid_score) ) + xlab("Mother's High School Status") + ylab("Children's Test Score") + stat_functio...