Re: [R] Alpha not working in geom_rect

2015-03-10 Thread adel daoud
Thanks for the info Jeff. I will stick to using annotate() -- Adel Daoud, PhD, Researcher The New School for Social Research, Visiting Scholar in the Economics Department, 6 East 16th Street New York, NY 10003, dao...@newschool.edu University of Gothenburg Department of Sociology

Re: [R] Alpha not working in geom_rect

2015-03-09 Thread adel daoud
Hi Jim, Thanks for the input but that did not work. I am suing Rstudio by the way and I guess that has a better device that would support ggplot output. The annotate options works but that does not explain why the geom_area does not work: annotate(rect, xmin=2, xmax=10, ymin=0, ymax=1,

Re: [R] Alpha not working in geom_rect

2015-03-09 Thread Jeff Newmiller
I have run into this a couple of times ... If you generate the rectangles once per row of your data, the fill gets more and more dense so your alpha seems to not work. The annotate call only paints the rectangle once so you don't have this problem.

[R] Alpha not working in geom_rect

2015-03-07 Thread Adel
Hi I am trying to activate the alpha argument to work, but for some reason it does not to play with me. Anybody has an idea why? p - ggplot(data = prediction_df, aes(x=x, y=prediction, fill=threshold)) + geom_area(colour=black, size=.2, alpha=.4) + scale_fill_brewer(palette=Set1,

Re: [R] Alpha not working in geom_rect

2015-03-07 Thread Jim Lemon
Hi Adel, Almost certainly because the device you were using doesn't support transparency.Try it with a PDF device and check the resulting file in a PDF reader: pdf(ad.pdf) print(p) dev.off() Jim On Sun, Mar 8, 2015 at 4:39 AM, Adel adel.da...@socav.gu.se wrote: Hi I am trying to activate