R/plot.l1pcastar.R

Defines functions plot.l1pcastar

Documented in plot.l1pcastar

plot.l1pcastar <- function(x, ...) {
  if(!inherits(x,"l1pcastar"))
    stop("Not an l1pcastar 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.