Pierre Roudier
2011-08-04 23:50:30 UTC
Hi,
I've been bumping into the following problem lately> Am wondering if
I'm missing something obvious, or if this is a bug:
d <- cars
d$foo <- letters[1:2]
# Transparency works
ggplot(d) + geom_rect(aes(xmin=0, xmax=8, ymin=0, ymax=100), fill =
"lightblue", alpha = 0.2) + geom_point(aes(x=speed, y=dist))
# Transparency fails
ggplot(d) + geom_rect(aes(xmin=0, xmax=8, ymin=0, ymax=100), fill =
"lightblue", alpha = 0.2) + geom_point(aes(x=speed, y=dist)) +
facet_wrap(~foo)
Cheers,
Pierre
I've been bumping into the following problem lately> Am wondering if
I'm missing something obvious, or if this is a bug:
d <- cars
d$foo <- letters[1:2]
# Transparency works
ggplot(d) + geom_rect(aes(xmin=0, xmax=8, ymin=0, ymax=100), fill =
"lightblue", alpha = 0.2) + geom_point(aes(x=speed, y=dist))
# Transparency fails
ggplot(d) + geom_rect(aes(xmin=0, xmax=8, ymin=0, ymax=100), fill =
"lightblue", alpha = 0.2) + geom_point(aes(x=speed, y=dist)) +
facet_wrap(~foo)
Cheers,
Pierre
--
Scientist
Landcare Research, New Zealand
Scientist
Landcare Research, New Zealand