R: Visualisation of matrices using pheatmap-based heatmaps

vis_heatmap2 {immunarch} | R Documentation

## Visualisation of matrices using pheatmap-based heatmaps

### Description

Visualise matrices with the functions based on the pheatmap package with minimum amount of arguments.

### Usage

    vis_heatmap2(
      .data,
      .title = NA,
      .labs = NA,
      .color = colorRampPalette(c("#67001f", "#d6604d", "#f7f7f7", "#4393c3",
        "#053061"))(1024),
      ...
    )

### Arguments

`.data` | Input matrix. Column names and row names (if presented) will be used as names for labs.
`.title` | The text for the plot's title (same as the "main" argument in pheatmap).
`.labs` | A character vector of length two with names for x-axis and y-axis, respectively.
`.color` | A vector specifying the colors (same as the "color" argument in pheatmap). Pass NA to use the default pheatmap colors.
`...` | Other arguments for the pheatmap function.

### Value

A pheatmap object.

### See Also

vis, repOverlap

### Examples

    data(immdata)
    ov <- repOverlap(immdata$data)
    vis_heatmap2(ov)

[Package immunarch version 0.6.5 Index]