[R] ggplot2: modifying line width and background fill color for stat_smooth()

Michael Friendly friendly at yorku.ca
Fri Mar 8 18:47:41 CET 2013


On 3/8/2013 12:09 PM, John Kane wrote:
>   donner<-read.csv("http://www.ling.upenn.edu/~joseff/data/donner.csv")
>    
>    ggplot(donner, aes(AGE, NFATE, colour = GENDER))+
>      geom_point(position = position_jitter(height = 0.02, width = 0)) +
>      stat_smooth(method = "glm", family = binomial, formula = y ~ poly(x,2),
>                  alpha = 0.1, size=2, aes(fill = GENDER))
Yes, perfect -- exactly what I want!

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