https://github.com/cran/robCompositions
Raw File
Tip revision: bea0f6203c78ee704dca8deb7c74cc48e13ee950 authored by Matthias Templ on 15 May 2012, 15:35:41 UTC
version 1.6.0
Tip revision: bea0f62
plot.pcaCoDa.R
plot.pcaCoDa <- function(x, y, ...){
	## biplot
	#z <- list()
	#z$scores <- x$scores
	#z$loadings <- x$loadings
	beschx <- if(x$method == "robust") "PC1 (clr-robust)" else "PC1 (clr-standard)"
	beschy <- if(x$method == "robust") "PC2 (clr-robust)" else "PC2 (clr-standard)"
#	biplot(x$princompOutputClr, xlab=beschx, ylab=beschy)
	biplot(x$princompOutputClr, xlab=beschx, ylab=beschy)
}
back to top