Re: [R] ggplot2: color histograms by quintile

2013-08-01 Thread John Kane
Message- > From: david_txert...@yahoo.fr > Sent: Thu, 1 Aug 2013 01:23:37 +0100 (BST) > To: r-help@r-project.org > Subject: [R] ggplot2: color histograms by quintile > > Hello, > > I have a basic panel of histograms as follows, whose current colors don't > matter:

[R] ggplot2: color histograms by quintile

2013-07-31 Thread David Chertudi
Hello,   I have a basic panel of histograms as follows, whose current colors don't matter:     binsize=diff(range(thing$Rate))/64 ggplot(thing, aes(x=Rate, fill=Series)) + geom_histogram(binwidth=binsize) + facet_grid(Series~.,scales="free")+   labs(fill="Index") +   xlab("Growth Rate (%)") +