Learn R Programming

paramDemo (version 1.0.2)

plot.paramDemo: Functions to plot parametric demographic functions

Description

Draw a plot of demographic functions produced with function CalcDemo

Usage

# S3 method for paramDemo
plot(x, demofun = "all", ...)

Value

No return value, called for plotting objects of class “paramDemo

Arguments

x

Object of class “paramDemo

demofun

Character string for the demographic function to be ploted

...

Additional arguments passed to function plot

Author

Fernando Colchero fernando_colchero@eva.mpg.de

See Also

CalcDemo to calculate parametric demographic functions.

Examples

Run this code
# Create paramDemo object from Gompertz mortality and
# quadratic fertility:
dem <- CalcDemo(theta = c(b0 = -5, b1 = 0.1), 
                 beta = c(b0 = 0.5, b1 = 0.01, b2 = 10),
                 summarStats = TRUE, agesAR = c(5, 10))

# Plot demographic object:
plot(dem)

Run the code above in your browser using DataLab