Learn R Programming

CRABS (version 1.2.0)

plot.CRABS: Plots the rate functions including the pulled rates.

Description

Plots the rate functions including the pulled rates.

Usage

# S3 method for CRABS
plot(x, ...)

Value

a patchwork object

Arguments

x

An object of class "CRABS"

...

other parameters

Examples

Run this code

data(primates_ebd)
lambda <- approxfun(primates_ebd$time, primates_ebd$lambda)
mu <- approxfun(primates_ebd$time, primates_ebd$mu)
times <- seq(0, max(primates_ebd$time), length.out = 500)

model <- create.model(lambda, mu, times = times)

plot(model)

Run the code above in your browser using DataLab