HeatStruct: Structure Heatmap with Missing Value Demonstration

Description Usage Arguments Details Examples

Description

Structure Heatmap with Missing Value Demonstration

Usage

1
2
HeatStruct(data, high.col = "steelblue", low.col = "white",
  missing.col = "gold", xlab = "", ylab = "")

Arguments

data

a data frame or matrix, possibly with missing values denoted by NA

high.col

color for high values, can be a number or a color name, default is "steelblue.

low.col

color for high values, can be a number or a color name, default is "white".

missing.col

color for missing values, can be a number or a color nam, default is "gold"

xlab

a title for the x axis.

ylab

a title for the y axis .

Details

Structure heatmap is like a normal heatmap, but is particulary useful when they are missing values in the data matrix. Default color were carefully chosen so normally it is a good choice for your data. However, you are still encouraged to play around with it.

Examples

1
2
3
4
5
6
7
data(hqmr.data)
# use a subset of the hqmr.data
# notice the gold chunks which represent missing values
subdata <- hqmr.data[1000:1200, 1:30]
HeatStruct(subdata)
# change colors for high.col, low.col and missing.col
HeatStruct(subdata, low.col = "blue", high.col = "red", missing.col = "black")

Example output



cutoffR documentation built on May 2, 2019, 6:12 a.m.