Learn R Programming

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

503

Version

1.0.9

License

Artistic-2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Aron Eklund

Last Published

February 20th, 2020

Functions in squash (1.0.9)

squashgram

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

Plot a dendrogram with a colorgram underneath
makecmap

Generate a color map from numeric values to colors
matapply

Apply a function over z coordinates, binned by their x, y coordinates
trianglegram

Draw a color-coded triangular matrix
savemat

Save a matrix as a raster image file
prettyInt

Pretty breakpoints
xyzmat.coords

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

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

Draw diamonds
ColorPalettes

Bonus color palettes
hist2

Bivariate histogram
distogram

Draw a color-coded triangular distance matrix
cmap

Apply a color map to numeric data
corrogram

Draw a color-coded triangular matrix of pairwise correlations
cimage

Draw a matrix of colored rectangles
colorgram

Draw a colorgram (heatmap) of a matrix
hkey

Add a color key to a plot