Posts Tagged ‘ visualization ’

Visulization of correlation matrix

March 12, 2009
By

Color Imagedata(mtcars)fit = lm(mpg ~ ., mtcars)cor = summary(fit, correlation = TRUE)$correlationcor2 = t(cor)colors = c("#A50F15", "#DE2D26", "#FB6A4A", "#FCAE91", "#FEE5D9","white", "#EFF3FF", "#BDD7E7", "#6BAED6", "#3182BD", "#08519C")image(1:11, 1:11, cor2, axes = FALSE, ann = F, col = colors)text(rep(1:11, 11), rep(1:11, each = 11), round(100 * cor2))Ellipseslibrary(ellipse)col =

Read more »

Scatterplots

March 11, 2009
By

There are many types of scatterplots in R, here are some examples based on the famous Iris data.pairs() and coplot() in package graphics.gpairs() in package YaleToolkit.scatterplot.matrix() or spm() in package car.splom() in package lattice.

Read more »

maps of Poland in R

June 23, 2008
By
maps of Poland in R

Bogdan Taranta (website in Polish) is developing a set of functions for drawing administrative maps of Poland. I wrote similar functionality for myself already some time ago, but only for voivodships, i.e. top-level administrative units, and also in a rather low resolution. Bogdan’s contribution seems to contain all levels, at high resolution, and including the

Read more »