[R] Color Key in RColorBrewer

From: chakri_amateur <chakri2sai_at_yahoo.co.in>
Date: Sun, 17 Apr 2011 11:57:29 -0700 (PDT)


I am using RcolorBrewer for plotting "similarity scores", starting with pair-wise similarity matrix as input. "similarity scores" range is 0 to1, with 1 meaning 100% similar (see two maps below) http://r.789695.n4.nabble.com/file/n3455953/lingosimilarity.jpg http://r.789695.n4.nabble.com/file/n3455953/bingosimilarity.jpg I would like to have same color key in both the plots. My objective here is to compare two plots visually. By "same color key", I mean, same range - like white for 0 - 0.2, grey for 0.2 - 0.4 and black for 0.8 - 1. Is it possible to make color scale constant in RColorBrewer? If so, please provide me pointers to command !

Thanks in Advance

View this message in context: http://r.789695.n4.nabble.com/Color-Key-in-RColorBrewer-tp3455953p3455953.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 17 Apr 2011 - 21:12:56 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 18 Apr 2011 - 10:50:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive