Skip to content
Back to formatted view

Raw Message

Message-ID: <513A243D.8080100@yorku.ca>
Date: 2013-03-08T17:47:41Z
From: Michael Friendly
Subject: ggplot2: modifying line width and background fill color for stat_smooth()
In-Reply-To: <9F3D695C851.000008BEjrkrideau@inbox.com>

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