In this module, we will continue to explore different ways to modify/customize the legend of plots including:
library(ggplot2)
library(dplyr)
library(tidyr)
ggplot(mtcars) + geom_point(aes(disp, mpg, color = factor(cyl))) +
scale_color_manual(values = c("red", "blue", "green"),
guide = guide_legend(label.position = "right"))