cluster_order: Cluster Order

Description Usage Arguments Value

View source: R/ggheatmap.R

Description

Order columns in a dataframe by a value using hierchical clustering. Used primarily when making a heatmap style plot so the function takes two columns, one intended to the be rows of the heatmap and the other intended to be the column.

Usage

1
2
cluster_order(x, row, column, value, dist_method = "euclidean",
  hclust_method = "complete")

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 to order by

dist_method

distance method, passed to stats::dist

hclust_method

hierchical clustering method, passed to stats::hclust

Value

dataframe with columns ordered


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