Re: [R] ggplot2, geomtile fill assignment

2013-02-21 Thread Benjamin Caldwell
Excellent! Now I see that documentation in discrete_scale(). Thanks. *Ben Caldwell* Graduate Fellow University of California, Berkeley 130 Mulford Hall #3114 Berkeley, CA 94720 Office 223 Mulford Hall (510)859-3358 On Thu, Feb 21, 2013 at 1:26 PM, Ista Zahn wrote: > Hi Ben, > > How about > >

Re: [R] ggplot2, geomtile fill assignment

2013-02-21 Thread Ista Zahn
Hi Ben, How about lim <- with(input, { c(min(amplitude), max(amplitude))}) p <- ggplot(sub1, aes(x=x,y=y,fill=amplitude)) p + geom_tile() + scale_fill_gradientn("Custom Colours", colours=c("purple", "blue", "gre

Re: [R] ggplot2, geomtile fill assignment

2013-02-21 Thread Benjamin Caldwell
As a follow-up, I am able to achieve what I'd like to do in terms of a set range of values for amplitude using filled.contour() and specifying the zlim argument - however, in the end I'd still like to have the possibilities for layering that ggplot offers available to me; so, please let me know if