R/plot.l1pcahp.R

Defines functions plot.l1pcahp

Documented in plot.l1pcahp

plot.l1pcahp <- function(x, ...) {
  if(!inherits(x,"l1pcahp"))
    stop("Not an l1pcahp object")
  
  if(ncol(x$scores) == 1)
    stop("Need scores in at least two dimensions")

  plot(x$scores[,1:2])
}

Try the pcaL1 package in your browser

Any scripts or data that you put into this service are public.

pcaL1 documentation built on Jan. 22, 2023, 1:55 a.m.