Creates diagnostic plots for a functional time series model.

plot.ftsm(
  x,
  components,
  components.start = 0,
  xlab1 = x$y$xname,
  ylab1 = "Basis function",
  xlab2 = "Time",
  ylab2 = "Coefficient",
  mean.lab = "Mean",
  level.lab = "Level",
  main.title = "Main effects",
  interaction.title = "Interaction",
  basiscol = 1,
  coeffcol = 1,
  outlier.col = 2,
  outlier.pch = 19,
  outlier.cex = 0.5,
  ...
)

Arguments

x

An object of class ftsm returned by ftsm().

components

Number of components to plot (default: all components).

components.start

Starting component number (default: 0).

xlab1

Label for x-axis of basis function plots.

ylab1

Label for y-axis of basis function plots.

xlab2

Label for x-axis of coefficient plots.

ylab2

Label for y-axis of coefficient plots.

mean.lab

Label for mean function plot.

level.lab

Label for level component plot.

main.title

Main title for the plot.

interaction.title

Title for interaction plots.

basiscol

Color for basis function lines.

coeffcol

Color for coefficient lines.

outlier.col

Color for outlier points.

outlier.pch

Plotting character for outlier points.

outlier.cex

Size of outlier points.

...

Additional arguments passed to plotting functions.

Value

A plot showing basis functions and their corresponding coefficients.

See also

Examples

if (FALSE) { # \dontrun{
# Fit functional time series model
fit <- ftsm(pm_10_GR, order = 3)

# Plot the model
plot(fit)

# Plot only first 2 components
plot(fit, components = 2)
} # }