R/plines.R

Defines functions tr ones plines

Documented in ones

plines <- function(SetA,SetB,lin="dotted") {
  np<-nrow(SetA)
  for(i in 1:np) lines(rbind(SetA[i,1:2],SetB[i,1:2]),lty=lin) 
  return(NULL)
}



ones <- function(n) {
  if (length(n) == 1) 
    res = matrix(1, n, n)
  else res = array(1, n)
  return(res)
}



tr <- function(X) {
  tra = sum(diag(X))
  return(tra)
}

Try the MultBiplotR package in your browser

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

MultBiplotR documentation built on Nov. 21, 2023, 5:08 p.m.