plot.smAPC {smoothAPC}R Documentation

Presents demographic data as a heatmap

Description

Presents demographic data as a heatmap

Usage

## S3 method for class 'smAPC'
plot(x, component = c("all", "surface", "period", "cohort",
  "residuals", "original"), labs = c("Age", "Time"),
  color.palette = c("default", "special"), main = "", ...)

Arguments

x

Result of smoothing (object of class smAPC).

component

"smooth", "period", "cohort", "residuals" or "original".

labs

Vector of labels for X and Y axes.

color.palette

Character string "default" or "special" or a function accepting one argument and returning a color palette (for example rainbow).

main

Title for the plot.

...

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)

plot(sm)
plot(sm, "surface")
plot(sm, "cohort")
plot(sm, "period")
plot(sm, "residuals")
plot(sm, "original", main = "Original data")



[Package smoothAPC version 0.3 Index]