.colorBar {MethylIT.utils} | R Documentation |
This function is for internal use. It creates a color scaled bar for heatmap.
.colorBar(z, zlim, col = heat.colors(12), breaks, horiz = TRUE, ylim = NULL, xlim = NULL, lwd = 0.5, cex.axis = 1, ...)
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 |
Image with color bar