plot.PDlifeHist {paramDemo} | R Documentation |
Summarizing and plotting life history variables from parametric demographic models.
Description
These functions are all generic methods for class PDlifeHist
.
Usage
## S3 method for class 'PDlifeHist'
plot(x, type = "rates", ...)
## S3 method for class 'PDlifeHist'
summary(object, ...)
## S3 method for class 'PDlifeHist'
print(x, ...)
Arguments
x |
Object of class “ |
object |
Object of class “ |
type |
Character string specifying the type of plot to be drawn, options are “ |
... |
Additional arguments passed to functions |
Details
For objects of class “PDlifeHist
”, function print
displays on the console the data frame of life history variables produced by function CalcLifeHist
.
Function summary
prints to the console, first the settings as specified by the user (i.e., theta
and beta
parameters, and the types of models used), and then, as function print
, the table of life history variables.
Function plot
with argument type
= “rates
” produces plots of the age-specific demographic rates (i.e., p_x
and m_x
) and the stable age structure and reproductive values (i.e., \omega_x
and \nu_x
). If argument type
= “sensitivity
”, then it produces plots of the sensitivities and elasticities of \lambda
to p_x
and m_x
.
Value
No return value, called for plotting objects of class “PDlifeHist
”
Author(s)
Fernando Colchero fernando_colchero@eva.mpg.de
See Also
CalcLifeHist
to calculate life history variables from parametric demographic models.
Examples
# Calculate life histories on the defalult models:
test <- CalcLifeHist(theta = c(b0 = -3, b1 = 0.1),
beta = c(b0 = 1, b1 = 0.01, b2 = 5),
ageMatur = 2)
# Print results:
test
# Summary:
summary(test)
# Plot results:
plot(test, type = "all")