enhanced_basicplot {ComplexHeatmap} | R Documentation

## Enhanced version of basic barplot and boxplot

### Description

Enhanced version of basic barplot and boxplot

### Usage

    enhanced_basicplot(data, ..., ylim = NULL,
        ylab = deparse(substitute(data)), title = NULL, title_gp = gpar(fontsize = 14),
        type = c("boxplot", "barplot"), width = 0.8, gp = gpar(),
        pch = 1, size = unit(2, "mm"), axis_gp = gpar(fontsize = 8),
        padding = unit(c(2, 18, 2, 2), "mm"),
        heatmap_legend_list = list())

### Arguments

`data` | a matrix, a list or a simple numeric vector. If your data is a data frame please convert it to a matrix in the first place.
`...` | pass to `Heatmap`
`ylim` | ranges on y axis
`ylab` | label on y axis
`title` | title of the plot
`title_gp` | graphic parameters for the title
`type` | type of the plot
`width` | relative width of the bar or box
`gp` | graphic parameters for hte bar or box
`pch` | shape of outlier points in the boxplot
`size` | size of hte outlier points in the boxplot
`axis_gp` | graphic parameters for the axis
`padding` | padding of the plot
`heatmap_legend_list` | a list of `grob` which contains legend. It can be generated by `color_mapping_legend,ColorMapping-method`.

### Details

This function adds annotations to the barplot or boxplot.

This function is still quite experimental.

### Value

No value is returned

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### Examples

    mat = matrix(runif(100), 10)
    enhanced_basicplot(mat)
    ha = HeatmapAnnotation(char = sample(letters[1:2], 10, replace = TRUE),
                           num = runif(10))
    enhanced_basicplot(mat, top_annotation = ha)
    enhanced_basicplot(mat, type = "barplot", top_annotation = ha)

[Package ComplexHeatmap version 1.18.1 Index]