Description Usage Arguments Value Author(s) References See Also Examples
Makes a line plot (for one-dimensional processes) or image plot (two-dimensional processes) of a process represented in a spectral GP object.
1 2 | ## S3 method for class 'gp'
plot(x, type = "l", col = terrain.colors(32), ...)
|
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. |
No value is returned.
Christopher Paciorek paciorek@alumni.cmu.edu
Type 'citation("spectralGP")' for references.
gp
, simulate.gp
, getgrid.gp
, predict.gp
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.