Re: [R] ggplot2 customizing a plot

2013-02-21 Thread Ista Zahn
dat) + geom_raster(aes(fill=factor(value)), alpha=.5) + scale_fill_manual(values = paste("gray", seq(20, 100, by=8), sep="")) but a) now you are fighting with ggplot instead of taking advantage of it, and b) I fail to see how this is an improvement. Best, Ista > &

Re: [R] ggplot2 customizing a plot

2013-02-21 Thread Alaios
    scale_x_continuous(expand = c(0, 0)) +   scale_y_continuous(expand = c(0, 0)) Regards Alex From: Ista Zahn Cc: R help Sent: Thursday, February 21, 2013 2:15 PM Subject: Re: [R] ggplot2 customizing a plot Hi, > Hello Ista, [[eli

Re: [R] ggplot2 customizing a plot

2013-02-21 Thread Ista Zahn
> a. A fixed scale where values are categorized there > and Value is numeric, and trying to treat it like a category is only going to make things difficult. > b. a greyish pallete for the categories? Use scale_fill_gradient with different shades of gray as the low and high values, as shown a

Re: [R] ggplot2 customizing a plot

2013-02-21 Thread Alaios
you please help me have both a. A fixed scale where values are categorized there and b. a greyish pallete for the categories? I would like to thank you in advance for your reply Regards Alex From: Ista Zahn Cc: R help Sent: Wednesday, February 20, 2013

Re: [R] ggplot2 customizing a plot

2013-02-20 Thread Ista Zahn
Hi, On Wed, Feb 20, 2013 at 9:33 AM, Alaios wrote: > Dear all, > I want some help improve my ggplot as following: > Make the plottable area with grid, so is easy one to see where each box > refers to x and y values. I don't think you can easily move the grid to the front, but you can make the t