colorBar: Color bar for heatmaps

Description Usage Arguments Value

Description

This function is for internal use. It creates a color scaled bar for heatmap.

Usage

1
2
.colorBar(z, zlim, col = heat.colors(12), breaks, horiz = TRUE,
  ylim = NULL, xlim = NULL, lwd = 0.5, cex.axis = 1, ...)

Arguments

z

matrix of values used to visualize the heatmap

zlim

Limit for the numerical(color) scale, which must be consistent with parameter 'break'.

col

Palette of color to use

breaks

Numerical vector with the breaks used to produce the heatmap

horiz

Whether to the color bar will be horizontal(= TRUE) or vertical(= FALSE)

ylim

User defined limits for y-axis. Depending on the orientation, x- or y-limits may be defined that are different from the z-limits and will reduce the range of colors displayed.

xlim

User defined limits for x-axis

lwd

Line width.

cex.axis

Cex values for color bar axis labels.

...

Additional parameter to pass to 'par' R function

Value

Image with color bar


genomaths/MethylIT.utils documentation built on Nov. 26, 2019, 2:10 a.m.