get_order: Extract order

View source: R/get-order.R

get_orderR Documentation

Extract order

Description

Extract order

Usage

get_order(x, ...)

## S3 method for class 'numeric'
get_order(x, ...)

## S3 method for class 'character'
get_order(x, name = NULL, ...)

## S3 method for class 'hclust'
get_order(x, ...)

## S3 method for class 'dendrogram'
get_order(x, ...)

## S3 method for class 'dist'
get_order(x, ...)

## S3 method for class 'ggtree'
get_order(x, name = NULL, ...)

Arguments

x

any R object.

...

ignore.

name

old name.

Value

a numeric vector.

Author(s)

Hou Yun

Examples

hc <- hclust(dist(mtcars))
get_order(hc)

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