R/plot.cstab.R

Defines functions plot.cstab

Documented in plot.cstab

#' Plot method for cstab objects
#'
#' \code{plot.cstab} plots \emph{instability} path.
#'
#' @param x a cstab object (output of functions \code{cStability}).
#' @param \dots additional arguments passed to print.
#'
#' @author
#'    Jonas M. B. Haslbeck <jonas.haslbeck@gmail.com>
#'    Dirk U. Wulff <dirk.wulff@gmail.com>
#'
#' @method plot cstab
#'
#' @export
plot.cstab <- function(x, ...) {
  if(x$call$norm==FALSE) {
    graphics::plot(x$call$kseq,x$instab_path,xlab='k',ylab='Instability',las=1,type='b',...)
    }
  if(x$call$norm==TRUE) {
    graphics::plot(x$call$kseq,x$instab_path_norm,xlab='k',ylab='Instability',las=1,type='b',...)
    }
}
jmbh/cstab documentation built on Oct. 2, 2023, 1:56 p.m.