Description Usage Arguments Note Examples
This is a plotting method for univariate or multivariate functional time series (fts
). This method is designed to help the user visualize
fts
data using a variety of techniques that use plotly.
1 2 3 |
x |
an object of class |
npts |
number of points to evaluate functional object at |
type |
the type of plot to be displayed where possible types are:
|
main |
the main title |
ylab |
the y-axis label |
xlab |
the x-axis label |
tlab |
the time-axis label |
var |
an integer specifying the variable number to plot if |
... |
arguments to be passed to methods, such as graphical parameters. |
for a multivariate example, see the examples in fssa
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
require(fda)
require(Rfssa)
data(Callcenter) # Read data
u=seq(0,1,length.out=240) # Define domain of functional data
d=12 # number of basis elements
basis=create.bspline.basis(rangeval = c(0,1),nbasis = d) # create basis object
smooth.calls=smooth.basis(u, matrix(nrow=240,ncol=365,Callcenter$calls), basis)
Y=fts(smooth.calls$fd) # create functional time series
plot(Y,type = "heatmap")
plot(Y,type = "line",var = 1)
plot(Y,type = "3Dsurface",var = 1)
plot(Y,type = "3Dline",var = 1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.