R/plot.sharpel1pca.R

Defines functions plot.sharpel1pca

Documented in plot.sharpel1pca

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