reorder_by: Re-sorting Matrix Data

View source: R/reorder_by.R

reorder_byR Documentation

Re-sorting Matrix Data

Description

Resort matrix data by "hclust", "dendrogram", and so on.

Usage

reorder_by(x, ...)

## S3 method for class 'matrix'
reorder_by(
  x,
  by_rows = "hclust",
  by_cols = "hclust",
  dist_fun = dist_func(),
  ...
)

## S3 method for class 'data.frame'
reorder_by(
  x,
  by_rows = "hclust",
  by_cols = "hclust",
  dist_fun = dist_func(),
  ...
)

## S3 method for class 'correlate'
reorder_by(x, by_rows = "hclust", by_cols = "hclust", dist_fun = NULL, ...)

## S3 method for class 'matrix_data'
reorder_by(
  x,
  by_rows = "hclust",
  by_cols = "hclust",
  dist_fun = dist_func(),
  order = 1,
  ...
)

## S3 method for class 'md_tbl'
reorder_by(x, by_rows = NULL, by_cols = NULL, ...)

Arguments

x

matrix data.

...

other parameters.

by_rows, by_cols

method of reorder, default is "hclust".

dist_fun

a function to calculute distance matrix.

order

the index of the matrix to be reordered.

Value

same object with 'x'.

Author(s)

Hou Yun


Hy4m/linkET documentation built on June 30, 2023, 7:39 p.m.