plot.fData {roahd}R Documentation

Specialized method to plot fData objects

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

## 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


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 )



[Package roahd version 1.4.3 Index]