Plot a process based on a spectral GP object

Description

Makes a line plot (for one-dimensional processes) or image plot (two-dimensional processes) of a process represented in a spectral GP object.

Usage

1
2
## S3 method for class 'gp'
plot(x, type = "l", col = terrain.colors(32), ...)

Arguments

x

A GP object, created by gp.

type

Type of plot if process is one-dimensional, "l" for line, "p" for points, etc.

col

Color scheme for image plot if process is two-dimensional. E.g., topo.colors(64) is the default for image_plot; I prefer terrain.colors(64) as topo.colors has sharp color changes between adjacent bins.

...

Extra arguments to plotting functions.

Value

No value is returned.

Author(s)

Christopher Paciorek paciorek@alumni.cmu.edu

References

Type 'citation("spectralGP")' for references.

See Also

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

Examples

1
2
3
4
5
6
7
library(spectralGP)
gp1=gp(c(128),matern.specdens,c(1,4))
simulate(gp1)
plot(gp1)
gp2=gp(c(256,256),matern.specdens,c(1,0.5))
simulate(gp2)
plot(gp2)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.