Description Usage Arguments Details See Also Examples
This function performs the plot of an object of class Cov
, i.e. a
covariance or cross-covariance function.
1 2 |
x |
the covariance or cross-covariance function of class |
... |
additional graphical parameters to be used in plotting functions |
It builds above the function graphics::image
, therefore any additional
parameter suitable for graphics::image
will also be suitable as ...
argument to plot.Cov
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Generating a univariate functional dataset
N = 1e2
P = 1e2
t0 = 0
t1 = 1
time_grid = seq( t0, t1, length.out = P )
Cov = exp_cov_function( time_grid, alpha = 0.3, beta = 0.4 )
D1 = generate_gauss_fdata( N, centerline = sin( 2 * pi * time_grid ), Cov = Cov )
fD1 = fData( time_grid, D1 )
# Computing the covariance function of fD1
plot( cov_fun( fD1 ), main = 'Covariance function', xlab = 'time', ylab = 'time' )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.