Learn R Programming

⚠️There's a newer version (1.0.9) of this package.Take me there.

squash

An R package providing functions for color-based visualization of multivariate data, i.e. colorgrams or heatmaps

You can see some examples here: http://www.cbs.dtu.dk/~eklund/squash/

Installation

You can install the latest release from CRAN like this:

install.packages("squash")

Or you can install the latest development version from GitHub like this:

## install.packages(devtools)
devtools::install_github("aroneklund/squash")

Copy Link

Version

Install

install.packages('squash')

Monthly Downloads

476

Version

1.0.8

License

Artistic-2.0

Maintainer

Aron Eklund

Last Published

May 29th, 2017

Functions in squash (1.0.8)

hist2

Bivariate histogram
hkey

Add a color key to a plot
corrogram

Draw a color-coded triangular matrix of pairwise correlations
dendromat

Plot a dendrogram with a colorgram underneath
ColorPalettes

Bonus color palettes
cimage

Draw a matrix of colored rectangles
cmap

Apply a color map to numeric data
colorgram

Draw a colorgram (heatmap) of a matrix
diamond

Draw diamonds
distogram

Draw a color-coded triangular distance matrix
prettyInt

Pretty breakpoints
savemat

Save a matrix as a raster image file
makecmap

Generate a color map from numeric values to colors
matapply

Apply a function over z coordinates, binned by their x, y coordinates
xyzmat.coords

Extract (x, y, z) coordinates, where z is a matrix
xyzmat2xyz

Convert (x, y, zmat) coordinates to (x, y, z) coordinates
squashgram

Visualize a function of z coordinates, binned by x, y coordinates
trianglegram

Draw a color-coded triangular matrix