Tagged Questions
5
votes
2answers
1k views
How to order bars in faceted ggplot2 bar chart
If I want to order the bars in a ggplot2 barchart from largest to smallest, then I'd usually update the factor levels of the bar category, like so
one_group <- data.frame(
height = runif(5),
...
6
votes
2answers
1k views
Align multiple ggplot2 plots with grid
Context
I want to plot two ggplot2 on the same page with the same legend. http://code.google.com/p/gridextra/wiki/arrangeGrob discribes, how to do this. This already looks good. But... In my example ...
2
votes
1answer
159 views
using multiple size scales in a ggplot
I'm trying to construct a plot which shows transitions from one class to another. I want to have circles representing each class sized according to a class attribute, and arrows from one class to ...