Learn R Programming

toscca (version 0.1.0)

myHeatmap: Plot heatmap of cv w.r.t. the penalty parameter perfotmance.

Description

This function plots cca for different thresholds

Usage

myHeatmap(
  mat,
  palette_values = mpalette,
  blue = NULL,
  xlab = "",
  ylab = "",
  show_axes = TRUE,
  show_labels = TRUE,
  K = NULL
)

Value

No return value, called for plotting heatmap.

Arguments

mat

A matrix.

palette_values

Character string. Vector of colour values for the heatmap. Default is package's palette.

blue

Logical. If TRUE, use only scale of blues from palette.

xlab

Character. Label for x axis.

ylab

Character. Label for y axis.

show_axes

Logic. Default is True.

show_labels

Logic. Default is True.

K

Numeric. Number of components.

Examples

Run this code
mat <- matrix(rexp(200, rate=.1), ncol=20)/200
myHeatmap(mat)

Run the code above in your browser using DataLab