Re: [R] How to custom colorscale in treemap

2012-04-29 Thread nhbnhb
Hi, ur reply is much appreciated and I think that will work. But i don't know how to incorporate that code into map.market function: function (id, area, group, color, scale = NULL, lab = c(TRUE, FALSE), main = "Map of the Market", print = TRUE) { if (any(length(id) != length(area), leng

Re: [R] How to custom colorscale in treemap

2012-04-28 Thread Jim Lemon
On 04/28/2012 12:58 PM, nhbnhb wrote: 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