setup_colorbar_grid | R Documentation |
function to set parameters controlling colorbar placement in Iheatmap object
setup_colorbar_grid(
nrows = 3,
y_length = y_spacing * 0.9,
x_spacing = 0.16,
y_spacing = y_start/nrows,
x_start = 1.05,
y_start = 0.9
)
nrows |
number of rows in colorbar grid |
y_length |
length of colorbar |
x_spacing |
spacing along horizontal axis between colorbars |
y_spacing |
spacing along vertical axis between colorbars |
x_start |
left most position of colorbar grid |
y_start |
top most position of colorbar grid |
IheatmapColorbarGrid-class
object
cb_grid <- setup_colorbar_grid(nrows = 2, x_spacing = 0.2)
mat <- matrix(rnorm(24), nrow = 6)
hm <- iheatmap(mat, colorbar_grid = cb_grid, cluster_rows = "kmeans",
cluster_cols = "kmeans", row_k = 3, col_k = 2)
# Print heatmap if interactive session
if (interactive()) hm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.