[R] ggplot: stat_smooth(method='glm', ...) - plot linear predictor?

Michael Friendly friendly at yorku.ca
Fri Sep 20 02:51:39 CEST 2013


On 19/09/2013 6:29 PM, Ista Zahn wrote:
> You need to map obs to the y axis:
>
> p + geom_point(aes(y=obs), position=position_jitter(height=0.02, width=0))
Great. that's the magic I was missing

-- 
Michael Friendly     Email: friendly AT yorku DOT ca
Professor, Psychology Dept. & Chair, Quantitative Methods
York University      Voice: 416 736-2100 x66249 Fax: 416 736-5814
4700 Keele Street    Web:   http://www.datavis.ca
Toronto, ONT  M3J 1P3 CANADA



More information about the R-help mailing list