Skip to content
Prev 248852 / 398506 Next

ggplot2 -- scale_colour_manual()

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