Optimal seriation for your matrices

September 28, 2012
By

(This article was first published on is.R(), and kindly contributed to R-bloggers)

In our previous post, we used a quick-and-dirty method for ordering the axes on our heatmap. It has been pointed out to me that There is a Package for That (which is my nominee for a new slogan for R — not that it needs a slogan). seriation offers many methods for optimally ordering dist() objects, matrices, and arrays, and the Gist below offers one example of its usage.

By the same source who offered the seriation tip, I have been publicly (if gently) admonished for the use of the spectral palette. We can talk more about selecting a color palette later, but for today at least, our example uses the “safest” diverging RColorBrewer palette, “PuOr.”

To leave a comment for the author, please follow the link and comment on his blog: is.R().

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: , , , , ,

Comments are closed.