linear.heatmap: Plot values as linear heatmaps.

Description Usage Arguments Examples

Description

Plot values as linear heatmaps.

Usage

1
2
3
linear.heatmap(x, center = 0.5, minval = 0, maxval = 1,
  palettes = brewer.pal(9, "Reds"), nslices = 50, xlab = "",
  spacing = 0.05, bottom.to.top = TRUE, ...)

Arguments

x

vector of numeric values

center

central value; each value of x will be shown relative to its difference from 'center'

palettes

palettes for chosing colors for values less than and greater than 'center. Either a vector or a list of two vectors, where each vector contains two or more colors, ordered from closest to furthest from 'center'.

nslices

number of color slices to use in each gradient

xlab

x-axis label

spacing

amount of space [0-0.5) between each heatmap

bottom.to.top

if TRUE, plot values from the bottom to the top of the plot, otherwise top-down

...

additional arguments to be passed to 'plot'

min

minimum value; must be <= 'center'

max

value; must be >= 'center'

Examples

1
2
3
4
vals <- runif(10)
names(vals) <- paste('Sample', 1:10)
par(mar=c(4,5,1,1))
linear.heatmap(vals, xlab='Allelic Ratio (B/A)')

jdidion/fancyplots documentation built on May 18, 2019, 11:30 p.m.