lines.gp {spectralGP}R Documentation

Add a line plot for a one-dimensional process based on a spectral GP object

Description

Adds a line plot to an existing plot.

Usage

lines.gp(x, ...)

Arguments

x A GP object, created by gp.
... Extra arguments to plotting functions.

Details

Value

No value is returned.

Author(s)

Christopher Paciorek paciorek@alumni.cmu.edu

References

For technical details, see Paciorek, C.J. 2006. Bayesian Smoothing of Irregularly-spaced Data Using Fourier Basis Functions. Harvard University Biostatistics Working Paper Series. Working Paper 49. http://www.bepress.com/harvardbiostat/paper49

See Also

gp,simulate.gp,getgrid.gp,predict.gp

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--    or do  help(data=index)  for the standard data sets.
library(spectralGP)
gp1=gp(c(128),matern.specdens,c(1,4))
simulate(gp1)
plot(gp1)
simulate(gp1)
lines(gp1,col=2)


[Package spectralGP version 1.0 Index]