Description Usage Arguments See Also Examples
This function performs the plot of a functional univariate dataset stored in
an object of class fData
. It is able to accept all the usual
customizable graphical parameters, otherwise it will use the default ones.
1 2 |
x |
the univariate functional dataset in form of |
... |
additional graphical parameters to be used in plotting functions |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | N = 20
P = 1e2
# One dimensional grid
grid = seq( 0, 1, length.out = P )
# Generating an exponential covariance function (see related help for more
# information )
C = exp_cov_function( grid, alpha = 0.3, beta = 0.4 )
# Generating a synthetic dataset with a gaussian distribution and
# required mean and covariance function:
values = generate_gauss_fdata( N,
centerline = sin( 2 * pi * grid ),
Cov = C )
fD = fData( grid, values )
plot( fD )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.