reorder_by | R Documentation |
Resort matrix data by "hclust", "dendrogram", and so on.
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, ...)
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. |
same object with 'x'.
Hou Yun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.