Provides various visualizations for functional data.
# S3 method for dfts
plot(
x,
changes = NULL,
type = c("spaghetti", "fast", "rainbow", "banded", "acf", "pacf", "summary", "qq",
"distribution", "change", "interval", "surface"),
plot_title = x$name,
val_axis_title = NULL,
res_axis_title = NULL,
FD_axis_title = NULL,
eye = NULL,
aspectratio = NULL,
showticklabels = TRUE,
lag.max = 20,
d.max = 2,
alpha = 0.05,
TVE = 0.95,
distribution = c("norm"),
method = c("Welch", "MC", "Imhof"),
legend = TRUE,
highlight_changes = TRUE,
intervals = confidence_interval(x, changes),
int.gradual = TRUE,
...
)
Plot of varying types.
A dfts object or data which can be automatically converted to that
format. See dfts()
.
Vector of numeric change point locations. Can be NULL.
Choice of plotting method. Options include: 'spaghetti', 'fast', 'rainbow','banded','acf', 'pacf', 'summary', 'qq', 'distribution', 'change', 'interval', and'surface'.
Title to include on the return plot.
Title for the axis giving the values (val), the resolution of the fparam (res), and the functional observations (FD).
Angle (eye) and ratio (aspectratio) to view 3d plots.
Boolean if the tick marks should be shown.
Max number of lags to consider for ACF/PACF and summary plots.
Max number of dimensions for qq/distribution and summary plots.
Significance level to be used in various plots. Value in [0,1].
Total variance explained used in qq/distribution plots. Value in [0,1].
String of the distribution to compare against in. distribution plot. The string can be anything such that there is a rdistribution and ddistribution function available. For example 'exp', 'gamma'. Additional parameters can be passed using ... .
Method for computing ACF/PACF. Options include 'Welch', 'MC', and 'Imhof'.
Boolean if legend should be given in qq/distribution plots.
Boolean if changes should be highlighted in black.
Information on confidence intervals of changes for change
plot. See confidence_interval()
.
Boolean if confidence interval be solid gray (FALSE) or
gradual colors (TRUE) when type='change'
plot.
Details for plotting in acf/pacf, summary, or distribution function.
John Fox, & Sanford Weisberg (2019). An R Companion to Applied Regression. Sage.
plt <- plot(electricity)
plt <- plot(dfts(var(electricity)), type = "surface")
Run the code above in your browser using DataLab