library(ggplot2)
ggplot(mtcars, aes(x = wt, y = mpg, color = disp, colour2 = hp)) +
geom_point() +
scale_color_colorplane(color_projection = interpolate_projection,
zero_color = "darkorange2",
horizontal_color = "mediumspringgreen",
vertical_color = "magenta")
Run the code above in your browser using DataLab