I wonder if there is a function like:
scale_color_hue()
but for shapes. Editing the labels of a legend when using colors in aes is esay with that function, but I cannot do it when mixing colors and shapes.
For instance, the command:
ggplot(subdata, aes(x=factor(rGPUs), y=Speedup, colour=factor(Factor), shape=factor(Factor), group=Factor, ymin=0)) +
geom_line(size=1) + geom_point(size=4) +
scale_color_hue(labels = c("1X", "1.5X", "2X"))
I would like to plot it without the second legend. Nevertheless, I would not like to use the functions:
scale_color_manual()
scale_shape_manual()
since they need the labels together with the values, such as it is done in:
among many others.