Re: [R] ggplot2 - help with intervals in geom plot

2010-04-27 Thread hadley wickham
> The problem is that I want HCount and HProbCount to use custom > gradients. i.e. a colour for 0-10, next shade for 10-30, next for 30-70 > etc. Use cut to create factor with those levels, and then scale_fill_manual to match values to colours. > Due to some magic done on the data, one uses inter

[R] ggplot2 - help with intervals in geom plot

2010-04-27 Thread Dennis Gascoigne
Hi; I have created a geom_tile plot which does roughly what I want but I have a small tweak I cannot sort out. I have a dataframe binL, binR, HCount, HProbCount where HCount and HProbCount have values ranging from 1-150. I plot binL and binR on the axes respectively and create two charts wi