load("lengths.Rdata")
#plot animal lengths by year
l <- ggplot(length.gg, aes(length, colour = year))
l + geom_density() + scale_colour_grey() + labs(colour="Year")
#convert to bw theme
last_plot() + theme_bw()
l <- ggplot(length.gg, aes(length, size = year)) # size of line
based on variable
l + geom_density(size=2) + scale_colour_grey() + labs(colour="Year")
# constant size
Ben
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2