Revision | 8deba366554950bb0017491a1c4d872580e235fa (tree) |
---|---|
Time | 2010-09-23 21:44:56 |
Author | lorenzo |
Commiter | lorenzo |
I modified trivially the code (first I was repeating twice the same plot).
@@ -15,10 +15,11 @@ | ||
15 | 15 | dev.off() |
16 | 16 | |
17 | 17 | |
18 | -gpl <- ggplot(subset(xy, case == "A"), aes(x=value, y = ..density.., | |
19 | -fill=case, group=case)) + | |
20 | - geom_histogram(alpha=0.5,binwidth=0.1, position="identity") + | |
21 | - geom_histogram(data = subset(xy, case == "B"), | |
18 | + | |
19 | + | |
20 | +ggplot(subset(xy, case == "A"), aes(x=value, fill=case, group=case)) + | |
21 | + geom_histogram(alpha=0.5,binwidth=0.1, position="identity") + | |
22 | + geom_histogram(data = subset(xy, case == "B"), | |
22 | 23 | alpha=0.5,binwidth=0.2, position="identity") |
23 | 24 | |
24 | 25 |