scatterplot.matrix

· GNU-R, Graphics
Authors

John Fox’s package, “car”, has a very useful scatterplot.matrix (or simply spm) to make scatterplots of pairs from a set of variables. The plot below was created using

library(“car”)
scatterplot.matrix(~Exppop+Exppphc+literacy+Oppphc, reg.line=lm, smooth=TRUE, span=0.5, diagonal = ‘density’, data=temp)
dev.print(jpeg, file=”~/graph-matrix.jpg”, width=500, height=500, pointsize=10)

graph-matrix.jpg

%d bloggers like this: