plot.fdsample: Plot an fdsample object

Description Usage Arguments Details See Also Examples

View source: R/plotfdsample.R

Description

Plots the individual functions contained in an object of class fdsample.

Usage

1
2
## S3 method for class 'fdsample'
plot(x, ..., includy = NULL)

Arguments

x

the fdsample to be plotted

...

further arguments for controlling the plot.

includy

optional numeric vector containing values that are to be included in the ylim extent of the y-axis. Can be used to always start at 0, for example.

Details

This method requires that the functional data are curves, i.e. that element arg is a vector. By default, lines are plotted. This may be modified by giving an argument type which is passed to the matplot function used to plot the curves. Thus, type = "p" plots points, and type = "b" plots both points and lines.

Brightness / opacity of the curves can be controlled by setting alpha to a number between 0 and 1, see the description of function alphacol in package plottools.

The plot method plot.fdsample works like the function splot from package plottools. In particular, plot parameters can be given as "simplist"s or separately.

See Also

alphacol on defining transparent colors, and splot for the evaluation of plot parameters.

Examples

1
2
3
4
5
6
7
8
9
# load example data
data(ExampleData)
plot(fuda)
# using a predefined list of options, from plutils package
require(plutils)
blau <- simplist(col = "blue", alpha = 0.4)
plot(fuda, blau, includy = -2)
# add mean
plot(mean(fuda), col = "blue", lwd = 2, add = TRUE)

fdnonpar documentation built on May 2, 2019, 5:54 p.m.