[R] ggplot2 -- scale_colour_manual()

dicko ahmadou dicko.ahmadou at gmail.com
Sun Jan 30 20:18:00 CET 2011


Hi robert,
It's not a typo, i have the book and the right code is : 
huron <- data.frame(year=1875:1972,level=LakeHuron)
p <- ggplot(huron, aes(year)) +
  geom_line(aes(y= level - 5, colour = 'blue')) +
  geom_line(aes(y= level + 5, colour = 'red'))
print(p) 
So colour must inside aes.... 

-- 
View this message in context: http://r.789695.n4.nabble.com/ggplot2-scale-colour-manual-tp3247451p3247538.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list