View source: R/plot-ggordpoint.R
get_coord.pcoa | R Documentation |
get ordination coordinates.
## S3 method for class 'pcoa'
get_coord(obj, pc)
get_coord(obj, pc)
## S3 method for class 'prcomp'
get_coord(obj, pc)
obj |
object,prcomp class or pcoa class |
pc |
integer vector, the component index. |
ordplotClass object.
## Not run:
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))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.