R/plotTri.R

"plotTri" <- function(xx) {
  oldpar <- par(no.readonly = TRUE)
  on.exit(par(oldpar))
  if (dev.cur() != 1) {
    dev.new()
  }
  par(mfrow = c(3, 1))
  svddatalist <- doSVD(xx, 2, 2)

  matplot(svddatalist$left,
    type = "l",
    main = "Left sing. vectors alpha",
    log = "x"
  )

  matplot(t(svddatalist$right),
    type = "l",
    main = "Right sing. vectors alpha"
  )

  plot(1:length(svddatalist$values),
    log10(svddatalist$values),
    xlab = "",
    main = "Sing. values alpha", type = "b"
  )
}

Try the TIMP package in your browser

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

TIMP documentation built on Dec. 28, 2022, 3:06 a.m.