cor_matrix: Correlation-based heatmap

Description Usage Arguments Author(s) Examples

View source: R/cor_matrix.R

Description

Transforms data frame into matrix with options to be plotted using d3heatmap or heatmap.

Usage

1
2
3
4
5
6
7
8
cor_matrix(df, row_names = is.null(rownames(df)), cluster = TRUE,
  beta = 1, num_rows = 500)

## S3 method for class 'cor_matrix'
plot(x, rowname = TRUE, colname = TRUE,
  cluster = attr(x, "cluster"), beta = attr(x, "beta"),
  category = c("div", "seq", "qual"), d3map = interactive(),
  palette = palettes, scale = c("none", "row", "column"), ...)

Arguments

df

data frame with matrix to be plotted

row_names

column number or name with row names, or vector of row names (default column 1 if no rownames on df)

cluster

cluster rows and columns if TRUE (default)

beta

attenuation parameter for clustering (default 1)

num_rows

number of rows to plot

rowname

include row names in plot if TRUE

colname

include column names in plot if TRUE

category

category of RColorBrewer palettes (see brewer.pal.info)

d3map

use d3heatmap interactive plot if TRUE

palette

colorblind friendly palette to plot (see brewer.pal.info)

...

other plot parameters (ignored)

cluster

cluster rows and columns if TRUE (default)

beta

attenuation parameter for clustering (default 1)

Author(s)

Brian S Yandell, [email protected]

Examples

1
2
3
4

byandell/corheatmap documentation built on May 11, 2017, 7:49 p.m.