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
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
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,
3 matches
Mail list logo