ssj-delta-cu / ssj-graphs-r

Report graphs created with ggplot2
0 stars 0 forks source link

Plot enhancements: percentage of crop area by ET #3

Open andybell opened 7 years ago

andybell commented 7 years ago
  1. Label crops directly on plot
  2. add vertical line after landuse to separate form ET est.
    1. Order crop stack by percentage of areas (look at ggplot code for pie chart)
andybell commented 7 years ago

Changing the stack order of the barcharts turn out to be a bit of a pain - ggplot sets plot order based on the factor levels. To get around this each model has to be plot separately and then combine using grid arrange. This may limit the control of the appearance. For example, the Landuse bar is skinnier than the rest of the bars since the dimensions of the plot include the y-axis and the y label.

Labels for crops are placed directly on plot and removes the legend

No vertical line was added yet to visually separate landuse from the models. There is likely a way to do this in R but the method I tried was being problematic.

barchar_order_percentage

jessejanko commented 7 years ago

I like the labels and coloring, but I think I preferred the original chart where the same crops were aligned across models: image Maybe we could keep that parallel alignment and stack based on the Land Use Area column?