Description Usage Arguments Details Examples
Structure Heatmap with Missing Value Demonstration
1 2 | HeatStruct(data, high.col = "steelblue", low.col = "white",
missing.col = "gold", xlab = "", ylab = "")
|
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 . |
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.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.