[R] treemap grouping

2010-02-26 Thread evgeny55
Hi, Is there a way to create a treemap with more than 1 grouping. I've seen a lot of examples like this: http://flowingdata.com/2010/02/11/an-easy-way-to-make-a-treemap/ but what if some of my categories have sub-categories. Is there an existing function that can handle this thanks -- View

[R] qplot themes

2010-01-28 Thread evgeny55
Hi, I'm having trouble editing the qplot layout. I'm using the geom=tile option and I want to do a few things: 1. move the vertical and horizontal gridlines so that they appear on the edge of each tile (right now they're in the middle) 2. bring the gridlines to the foreground and change their

[R] color matrix

2010-01-27 Thread evgeny55
Hi, Is it possible to create a heatmap for say a 3x3 matrix of data where every color is pre-assigned? I can easily create a matrix of hex colors but when I try to use that matrix as the parameter for the 'col' option it doesn't work. If it's possible to just display a matrix of hex colors that

[R] heatmap.2 color range

2010-01-26 Thread evgeny55
Hi, I'm trying to create a heatmap with color ranges for different values in my matrix. For example: If x 5 , use orange gradient if x 1.5, use red gradient . Right now I have the following: orgPal-brewer.pal(3,Oranges) bluPal-brewer.pal(3,Blues) redPal-brewer.pal(3,Reds) grad -

Re: [R] heatmap.2 color range

2010-01-26 Thread evgeny55
as a followup, I tried using the rainbow function to create the gradients but is there a way to do a reverse rainbow, ie. normally if I do: pie(rep(1,6), col=rainbow(6,start=0, end=.07)) I'll get a gradient from dark red to orangish but what if I want it to go the other way thanks -- View

Re: [R] heatmap.2 color range

2010-01-26 Thread evgeny55
thanks, I think I got the color ranges down, however, I just realized that the colors don't match the data. When I execute: grad - ifelse(randMat 5,yelPal,ifelse(randMat1.5,redPal,bluPal)) the grad matrix contains the correct hex codes corresponding to the randMat data matrix but when I

Re: [R] heatmap.2 color range

2010-01-26 Thread evgeny55
also, can you point me to some example of how to omit colors from a palette -- View this message in context: http://n4.nabble.com/heatmap-2-color-range-tp1293498p1311031.html Sent from the R help mailing list archive at Nabble.com. __