Probably scale_fill_brewer and scale_colour_brewer are designed to use
with categorical (i.e., discrete) variable.
scale_fill_gradientn() is suitable, and you can do it simply by
p <- ggplot(data.frame(x=0:100, y=0), aes(x, y, fill=x)) + geom_tile() +
scale_fill_gradientn(colours=brewer.pal(7,"YlGn"))
--
Kohske Takahashi <takahash...@gmail.com>
Research Center for Advanced Science and Technology,
The University of Tokyo, Japan.
http://www.fennel.rcast.u-tokyo.ac.jp/profilee_ktakahashi.html
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>