Skip to contents

A generic function which by produces a qq-plot of some data. By default, it uses stats::qqplot().

qqplot.dfts: Creates normal QQ plots on the principal components of functional data.

Usage

qqplot(x, ...)

# Default S3 method
qqplot(x, ...)

# S3 method for class 'dfts'
qqplot(
  x,
  TVE = 0.95,
  d.max = NULL,
  alpha = 0.05,
  changes = NULL,
  legend = FALSE,
  ...
)

Arguments

x

A dfts object. See dfts().

...

Additional parameters based on the data.

TVE

Numeric in [0,1] giving the total variance explained for selecting the number of principal components.

d.max

Max number of principal components. No max when NULL.

alpha

Significance level, alpha in [0,1].

changes

Vector of change points.

legend

Boolean indicating if legend should be shown on plot.

Value

qqplot.default: returns results from stats::qqplot().

qqplot.dfts: ggplot2 for QQ plot.

See also

Examples

result <- qqplot(electricity, d.max=3)