[R] RColorBrewer

John Kane jrkrideau at inbox.com
Mon Oct 22 13:46:44 CEST 2012


This is perilously close to a straightforward homework question which is not usually answwered here but you get brownie points for saying you are a student.  

Also you did not follow the posting guidelines so we have no idea what are doing, what package(s) you may be using etc.  Have a look at  http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example for some idea of how to ask the question.

That said, just try googling for something like "RColorBrewer create personal palate" and see where it leads.

The first one I found was:
http://wiki.stdout.org/rcookbook/Graphs/Colors%20%28ggplot2%29/  whhich may be of use if you are using ggplot2, or perhaps even if you are not.

John Kane
Kingston ON Canada


> -----Original Message-----
> From: abrutvan at bennington.edu
> Sent: Fri, 19 Oct 2012 11:50:26 -0700 (PDT)
> To: r-help at r-project.org
> Subject: [R] RColorBrewer
> 
> Hi there everyone! So I'm a student in college, taking a very basic
> Statistics course. We're using R for most of our assignments. I've hit a
> pretty big wall here. I'm attempting to create a heat map of the entire
> united states which corresponds to a set of percentages I have for each
> state. My teacher suggested that I simply create a color palette with
> RColorBrewer that is in the exact order of the states by alphabet so that
> I
> can simply plug that pallette into the maps package and have it fill
> alphabetically with the gradient I created through my list. My problem is
> that I can't seem to create my own color palette using the color codes.
> How
> do i create a color palette using a list of color codes? For example
> #41BH39
> so on and so forth. Is this clear? Please ask me to clarify if it isn't.
> 
> Thanks!
> 
> 
> 
> 
> 
> --
> View this message in context:
> http://r.789695.n4.nabble.com/RColorBrewer-tp4646790.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at 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.

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!




More information about the R-help mailing list