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

Description Usage Arguments See Also Examples

View source: R/fData.R

Description

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.

Usage

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

Arguments

x

the univariate functional dataset in form of fData object.

...

additional graphical parameters to be used in plotting functions

See Also

fData

Examples

 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 )

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