plot_clusters {heatmaps} | R Documentation

## Plot partition in a separate panel

### Description

Plot partition in a separate panel

### Usage

    plot_clusters(options)

### Arguments

`options` | heatmapOptions passed as a list Two heatmapOptions values are relevant: * partition Numeric vector containing relative sizes of the clusters * colors Colors to use for clusters, additional colors are discarded This function plots a vertical color scale (or legend). With the default parameters, it looks good at about 1/5 the width of a heatmap, about 1cm x 10cm. This function only plots the legend, it does not set margin parameters.

### Value

invisible(0)

### See Also

plotHeatmapList

### Examples

    data(HeatmapExamples)
    opts = heatmapOptions()
    opts$partition = c(1,2,3,4)
    par(mai=opts$legend.mai)
    plot_clusters(opts)

[Package heatmaps version 1.18.0 Index]