R/plot_methods.R

Defines functions plot.npmsm

Documented in plot.npmsm

#' @title Plot a "npmsm" object
#' 
#' @description Plot the cumulative intensities of a \code{'npmsm'} objects.
#' A wrapper for \code{\link[mstate:plot.msfit]{plot.msfit}} from the
#' \code{\link[mstate:mstate]{mstate}} package. 
#' 
#' @param x An object of class \code{"npmsm"}
#' @param ... Additional arguments to \code{\link[mstate:msfit]{msfit}}
#' 
#' @return A plot will be produced in the plotting window
#'
#' @export
#' @import mstate
#'



plot.npmsm <- function(x, ...){
  plot(x$A, ...)
}

Try the icmstate package in your browser

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

icmstate documentation built on April 3, 2025, 8:06 p.m.