plot(iris,
col = colors2d(iris[, c("Sepal.Length", "Sepal.Width")]),
pch = 19, cex = 2)
plot(iris,
col = colors2d(iris[, c("Sepal.Length", "Sepal.Width")],
colors = c("limegreen", "gold", "black", "dodgerblue"),
xtrans = "rank", ytrans = "rank"),
pch = 19, cex = 2)
Run the code above in your browser using DataLab