plot.paramDemo {paramDemo} | R Documentation |
Draw a plot of demographic functions produced with function CalcDemo
## S3 method for class 'paramDemo'
plot(x, demofun = "all", ...)
x |
Object of class “ |
demofun |
Character string for the demographic function to be ploted |
... |
Additional arguments passed to function |
No return value, called for plotting objects of class “paramDemo
”
Fernando Colchero fernando_colchero@eva.mpg.de
CalcDemo
to calculate parametric demographic functions.
# 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)