Some geometry hides the key to other geometries in the legend (especially boxplot)
How to choose geometry in the legend?
For instance:.
qplot(data=CO2, x=Type, y=uptake, colour=Plant, shape=Treatment)+ geom_boxplot()
Switching the order of geometers helps
qplot(data=CO2, x=Type, y=uptake, colour=Plant, shape=Treatment, geom="boxplot")+ geom_point()
But I would like the legend to be found with
qplot(data=CO2, x=Type, y=uptake, colour=Plant, shape=Treatment)
Do I need to extract the legend of one plot and paste it into another using something like gridExtra?
source share