I\'m trying to keep the legend of one layer (smooth) and remove the legend of the other (point). I have tried shutting off the legends with guides(colour = FALSE)
guides(colour = FALSE)
There might be another solution to this: Your code was:
geom_point(aes(..., show.legend = FALSE))
You can specify the show.legend parameter after the aes call:
show.legend
aes
geom_point(aes(...), show.legend = FALSE)
then the corresponding legend should disappear