plot.Cov: Specialized method to plot 'Cov' objects

Description Usage Arguments Details See Also Examples

View source: R/fData.R

Description

This function performs the plot of an object of class Cov, i.e. a covariance or cross-covariance function.

Usage

1
2
## S3 method for class 'Cov'
plot(x, ...)

Arguments

x

the covariance or cross-covariance function of class Cov.

...

additional graphical parameters to be used in plotting functions

Details

It builds above the function graphics::image, therefore any additional parameter suitable for graphics::image will also be suitable as ... argument to plot.Cov.

See Also

cov_fun

Examples

 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' )

roahd documentation built on Nov. 4, 2021, 1:07 a.m.