plot.gp {spectralGP} | R Documentation |
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
## S3 method for class 'gp'
plot(x, type = "l", col = terrain.colors(32), ...)
Arguments
x |
A GP object, created by |
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
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)
[Package spectralGP version 1.3.3 Index]