plot.Lfd: Plot a Linear Differential Operator Object

Description Usage Arguments Value Side Effects See Also Examples

View source: R/Lfd.R

Description

Plot the coefficents of the terms of order 0 through m-1 of an object of class Lfd and length m.

Usage

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

Arguments

x

a linear differential operator object to be plotted.

axes

Either a logical or a list or NULL passed to plot.fd.

  • logical whether axes should be drawn on the plot

  • list a list used to create custom axes used to create axes via do.call(x$axes[[1]], x$axes[-1]). The primary example of this uses list("axesIntervals", ...), e.g., with Fourier bases to create CanadianWeather plots

...

additional plotting arguments that can be used with function plot

Value

invisible(NULL)

Side Effects

a plot of the lindear differential operator object.

See Also

Lfd, plot.fd

Examples

1
2
3
4
5
6
7
8
9
#  Set up the harmonic acceleration operator
dayrange  <- c(0,365)
Lbasis  <- create.constant.basis(dayrange,
                  axes=list("axesIntervals"))
Lcoef   <- matrix(c(0,(2*pi/365)^2,0),1,3)
bfdobj  <- fd(Lcoef,Lbasis)
bwtlist <- fd2list(bfdobj)
harmaccelLfd <- Lfd(3, bwtlist)
plot(harmaccelLfd)

Example output

Loading required package: splines
Loading required package: Matrix

Attaching package: 'fda'

The following object is masked from 'package:graphics':

    matplot

fda documentation built on May 2, 2019, 5:12 p.m.