This should turn the country and rcid columns into ordered factors based on the clustering of the country x rcid matrix. This would be useful, for example, to feed into ggplot2 with geom_tile.
This will probably involve a new adverb that involves manipulating a data frame based on its wide form, but (unlike widely and squarely) while keeping its shape. (statically is closest but isn't quite right).
Wrap the seriation package, to order one or two columns based on their clustering.
An example with unvotes data would be something like:
This should turn the
country
andrcid
columns into ordered factors based on the clustering of the country x rcid matrix. This would be useful, for example, to feed into ggplot2 withgeom_tile
.This will probably involve a new adverb that involves manipulating a data frame based on its wide form, but (unlike widely and squarely) while keeping its shape. (
statically
is closest but isn't quite right).