pheat: Build a pheatmap object in stages

Description Usage Arguments Examples

Description

Build a pheatmap object in stages

Usage

1
2
3
4
5
6
7
pheat(x, ...)

## S3 method for class 'matrix'
pheat(x)

## S3 method for class 'data.frame'
pheat(x, rownames_in = 1)

Arguments

x

A matrix or data frame of data for the heatmap

...

Additional arguments passed to other methods

rownames_in

The column of the data frame that gives the rownames for the heatmap. Can be specified as an integer index or with the column name in quotes. Set to NULL to use the existing rownames of the data frame.

Examples

1
2
3
4
5
6
7
8
pheat(vendor_props)

# Re-format heatmap data in a data frame
vendor_props_df <- data.frame(
  taxon_id = rownames(vendor_props),
  vendor_props[,1:15])
rownames(vendor_props_df) <- NULL
pheat(vendor_props_df, rownames_in = "taxon_id")

kylebittinger/pheatbuilder documentation built on Dec. 21, 2021, 8:45 a.m.