[R] ggplot2

Michael Kubovy kubovy at virginia.edu
Thu Nov 8 18:16:39 CET 2007


Dear r-helpers,

I'm using ggplot2::ggplot to plot seven time series on the same graph.

c <- ggplot(jobm, aes(y = value, x = year, colour = kind))
c + stat_smooth()

This gives me a legend with colors that are not very different. Can I  
label the lines instead? How?
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/



More information about the R-help mailing list