ggheatmap: Make a ggplot heatmap

Description Usage Arguments Value

View source: R/ggheatmap.R

Description

Function to create a ggplot heatmap where the rows and columns are ordered with heirarchical clustering, as in a traditional heatmap

Usage

1
2
3
4
ggheatmap(x, row, column, value, scale = c("row", "column"),
  filter_empty = TRUE, dist_method = "euclidean",
  hclust_method = "complete", scico_pal = "vik",
  cell_border = "grey50")

Arguments

x

dataframe

row

bare name of column to be the rows

column

bare name of column to be the columns

value

bare name of column with values to fill the cells and order the rows and columns

dist_method

distance method, passed to stats::dist

hclust_method

hierchical clustering method, passed to stats::hclust

scico_pal

colour palette to use from the package scico

cell_border

colour for the cell border, use NA to remove border

Value

a ggplot object


mworkentine/mattsUtils documentation built on May 23, 2019, 11:58 a.m.