get_coord: get ordination coordinates.

Description Usage Arguments Value Examples

View source: R/plot-ggordpoint.R

Description

get ordination coordinates.

Usage

1
2
3
4
5
6
7
## S3 method for class 'pcoa'
get_coord(obj, pc)

get_coord(obj, pc)

## S3 method for class 'prcomp'
get_coord(obj, pc)

Arguments

obj

object,prcomp class or pcoa class

pc

integer vector, the component index.

Value

ordplotClass object.

Examples

1
2
3
4
5
require(graphics)
data(USArrests)
pcares <- prcomp(USArrests, scale = TRUE)
coordtab <- get_coord(pcares,pc=c(1, 2))
coordtab2 <- get_coord(pcares, pc=c(2, 3))

MicrobiotaProcess documentation built on April 18, 2021, 6 p.m.