Tagged with ggplot

Scatterplot matrices with ggplot

Scatterplot matrices with ggplot

If you’re constantly exploring data, chances are that you have already used the plot function pairs for producing a matrix of scatterplots. For instance, using the classic iris dataset we can obtain the following graphic data(iris) pairs(iris[,1:4]) You can add colors by simply typing pairs(iris[,1:4], col=iris$Species) If you’re a regular user of the package ggplot2, you might also … Continue reading