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 and
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.
-
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, fill="b
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 wrote:
> Hi
> I am trying to activate the alpha argument to
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",
breaks=rev
5 matches
Mail list logo