Re: [R] nesting scale_manual caracteristics in ggplot

2011-11-08 Thread Dennis Murphy
As I mentioned earlier, if you use different labels/breaks/titles for the legends, you'll get separate legends in a ggplot. I'm assuming you want to keep your original labels in scale_shape_manual(); there's no problem if you do that. The code I provided showed you how to align all three legends; i

Re: [R] nesting scale_manual caracteristics in ggplot

2011-11-08 Thread Sigrid
Hi Dennis, Thank you, it looks much better now the three characteristics are combined in the label. However, I would like to keep two different sets of labels on the side as I want to describe lines for each facet (high and low). Do you think this is possible, without breaking up the characteristi

Re: [R] nesting scale_manual caracteristics in ggplot

2011-11-08 Thread Dennis Murphy
Hi: The problem is that you use different sets of labels in each scale_*_manual. To get all of the scales to merge into one, you need to have the same title, same breaks and same labels for the legend. This gets you a single legend: ggplot(data = df, aes(x = year, y = total, colour = treatment,

[R] nesting scale_manual caracteristics in ggplot

2011-11-08 Thread Sigrid
Hi there, I am having a little problem with combining three scale_manual commands in a facet plot. I am not able to combine the three different characteristics, instead ending up with three different descriptions next to the graph for the same geom. I would like to see two separate labels (not th