geom_path question

10 views
Skip to first unread message

Peter Flom

unread,
Mar 14, 2009, 1:46:23 PM3/14/09
to ggplot2group
Hello again

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

hadley wickham

unread,
Mar 14, 2009, 1:47:42 PM3/14/09
to Peter Flom, ggplot2group
Hi Peter,

Both problems are fixed in the development version. I'm hoping to get
another release out in the next couple of weeks.

Hadley
--
http://had.co.nz/
Reply all
Reply to author
Forward
0 new messages