plot3d.smAPC {smoothAPC} | R Documentation |
Presents demographic data as a 3D surface
Description
Presents demographic data as a 3D surface
Usage
## S3 method for class 'smAPC'
plot3d(x, component = c("all", "surface", "period", "cohort",
"residuals", "original"), labs = c("Age", "Time", NA),
color.palette = c("default", "special"), ...)
Arguments
x |
Result of smoothing (object of class |
component |
"smooth", "period", "cohort", "residuals" or "original". |
labs |
Vector of labels for X, Y and Z axes. |
color.palette |
Character string |
... |
Other parameters. They are currently ignored. |
Author(s)
Alexander Dokumentov
Examples
library(demography)
m <- log(fr.mort$rate$female[1:30, 150:160])
sm <- autoSmoothAPC(m)
plot3d(sm)
plot3d(sm, "surface", color.palette = "special")
plot3d(sm, "cohort")
plot3d(sm, "period")
plot3d(sm, "residuals")
plot3d(sm, "original", color.palette = rainbow)
[Package smoothAPC version 0.3 Index]