[R] How to custom colorscale in treemap

nhbnhb yanhann10 at gmail.com
Sat Apr 28 04:58:54 CEST 2012


Hi~I'm new to R. I'm following these two tutorials to make a tree map, but
the color scale isn't quite what I wanted.

For map of the market, the color scale starts from 0(red) to max(green),
what I wanted is 0(Green)-1(Red)-max(green). What's the easiest way to
achieve this kind of divergent color scale?

How shall I make my own palette and use it in the map.market or tree map
function?

Thank you very much~

--
View this message in context: http://r.789695.n4.nabble.com/How-to-custom-colorscale-in-treemap-tp4594161p4594161.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list