R/plot.pcalp.R

Defines functions plot.pcalp

Documented in plot.pcalp

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