R/plot.skewMLRM.R

Defines functions plot.skewMLRM

Documented in plot.skewMLRM

plot.skewMLRM <-
function(x, ...)
{
  if(substring(x$"function",1,4)=="dist")
  {
 pc<-x$cut
 plot(x$Mahal,xlab='obs',ylab='Mahalanobis',ylim=c(0,1.1*max(c(x$Mahal,pc))), ...)
 graphics::abline(h=pc,lty=2,lwd=1,col='red')
  }
  else
  {
   cat("\nPlot only can be used with an skewMLRM object created with distMahal function", sep = "")
  }
}

Try the skewMLRM package in your browser

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

skewMLRM documentation built on Nov. 24, 2021, 9:07 a.m.