| plot.PDlifeHist | R Documentation |
These functions are all generic methods for class PDlifeHist.
## S3 method for class 'PDlifeHist'
plot(x, type = "rates", ...)
## S3 method for class 'PDlifeHist'
summary(object, ...)
## S3 method for class 'PDlifeHist'
print(x, ...)
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 |
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.
No return value, called for plotting objects of class “PDlifeHist”
Fernando Colchero fernando_colchero@eva.mpg.de
CalcLifeHist to calculate life history variables from parametric demographic models.
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.