heatmap.clinical
plots clinical variables as boxes in the current frame. Assumes 'x'
is a matrix with color information in each cell. Colors are usually
given using character strings such as "white", "red", etc. See
'colors()' for a list of color names. NAs are plotted with color as
given by 'na.color'.
1 | heatmap.clinical(x, na.color = "grey")
|
x |
matrix with colors in each cell, or NAs. Will also accept data frames (with rows representing patients) |
na.color |
color to be used for missing values, i.e., NAs |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.