library(ggplot2)
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width,
colour2 = Petal.Width)) +
geom_point(aes(colour = Petal.Length)) +
geom_line(aes(linetype = Species)) +
scale_color_colorplane()
Run the code above in your browser using DataCamp Workspace