Graphics Reference
In-Depth Information
Figure 3-17. Stacked bar graph with reversed legend order
thetic mapping:
libary(plyr)
# Needed for desc()
ggplot(cabbage_exp, aes(x
=
Date, y
=
Weight, fill
=
Cultivar, order
=
desc(Cultivar)))
+
geom_bar(stat
=
"identity"
)