Worked beautifully! Thank you again for providing such a flexible package.
--- On Wed, 1/28/09, hadley wickham <h.wick...@gmail.com> wrote: From: hadley wickham <h.wick...@gmail.com> Subject: Re: [R] Changing histogram stack in qplot To: jasonkrup...@yahoo.com Cc: R-help@r-project.org Date: Wednesday, January 28, 2009, 3:32 PM Hi Jason, You'll need scale_fill_manual(values = c(low = "blue", middle = "black", high = "red")) See http://had.co.nz/ggplot2/scale_manual.html for more examples/details. Regards, Hadley On Wed, Jan 28, 2009 at 3:11 PM, Jason Rupert <jasonkrup...@yahoo.com> wrote: > I've been using qplot pretty successfully to generate stacked histograms. However, it appears that I need to tweak the colors a little. > > I've got three temperature variables (characters not numeric) and I need to change from the default qplot colors to the following: > Low = Blue > Middle = black > High = Red > > Here is pseudo code of what I have currently:qplot(Run, data = TestData, breaks = hist_breaks, , > fill = TestData$Temperature, > main = short_title) + > scale_x_continuous("Run, Radians") + scale_y_continuous("Frequency") + > scale_fill_discrete("Temperature") > > Thanks for any advice and insights. > > > > > > [[alternative HTML version deleted]] > > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- http://had.co.nz/ [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.