plot.fitStMoMo {StMoMo} | R Documentation |
Plot fitted parameters from a stochastic mortality model
Description
Plot fitted parameters of a stochastic mortality model of class
"fitStMoMo"
.
Usage
## S3 method for class 'fitStMoMo'
plot(x, nCol = 2, parametricbx = TRUE, type = "l", ...)
Arguments
x |
an object of class |
nCol |
number of columns to use in the plot. |
parametricbx |
if |
type |
what type of plot should be drawn. See
|
... |
additional arguments to control graphical appearance.
See |
Examples
#Fit and plot a Lee-Carter model
LCfit <- fit(lc(), data = EWMaleData, ages.fit = 55:89)
plot(LCfit)
plot(LCfit, type = "p", pch = 19)
#Fit and plot a CBD model
CBDfit <- fit(cbd(), data = central2initial(EWMaleData), ages.fit = 55:89)
plot(CBDfit)
plot(CBDfit, parametricbx = FALSE)
plot(CBDfit, nCol = 1, parametricbx = FALSE, lwd = 2)
[Package StMoMo version 0.4.1 Index]