From the examples for geom_path
I run
myear <- do.call(rbind, by(movies, movies$year, function(df) data.frame(year=df$year[1], mean.length = mean(df$length), mean.rating=mean(df$rating))))
p <- ggplot(myear, aes(x=mean.length, y=mean.rating))
p + geom_path()
# Add aesthetic mappings
p + geom_path(aes(size=year))
but, in the resulting plot, the line width is constant
If I run the next line
p + geom_path(aes(colour=year))
the color does vary, but several of the colors are almost invisible, and the ones that are visible are nearly impossible to distinguish from each other.
Help, please?
Peter
Peter L. Flom, PhD
Statistical Consultant
www DOT peterflomconsulting DOT com