KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to make boxplots with a transparent fill and a corresponding legend. The plotting with alpha values works fine except that the legend keys do not have transparent fills. The following example illustrates the difficulty: dat <- data.frame(x=c('a', 'b', 'c'), y = runif(300), z = c('d', 'e', 'e')) ggplot(dat) + geom_boxplot(aes(x, y, fill = z, colour = z), alpha = 0.2) Is there a way to make the fill values in the legend keys transparent too? SessionInfo() R version 2.14.0 (2011-10-31) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) ggplot2_0.8.9 Thanks in advance for any tips on this issue. An example where the alpha mapping works is the following ggplot(dat) + geom_point(aes(x, y, fill = z, colour = z, shape = z), alpha = 0.2)
Tags (comma-separated)
Save Edits
Cancel