plot.gp {spectralGP} | R Documentation |
Makes a line plot (for one-dimensional processes) or image plot (two-dimensional processes) of a process represented in a spectral GP object.
plot.gp(x, type = "l", col = terrain.colors(32), ...)
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. |
No value is returned.
Christopher Paciorek paciorek@alumni.cmu.edu
Type 'citation("spectralGP")' for references.
gp
,simulate.gp
,getgrid.gp
,predict.gp
##---- 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) gp2=gp(c(256,256),matern.specdens,c(1,0.5)) simulate(gp2) plot(gp2)