-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsurface.Krig.html
More file actions
164 lines (126 loc) · 4.38 KB
/
Copy pathsurface.Krig.html
File metadata and controls
164 lines (126 loc) · 4.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Plots a surface and contours</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>
<table width="100%" summary="page for surface.Krig {fields}"><tr><td>surface.Krig {fields}</td><td style="text-align: right;">R Documentation</td></tr></table>
<h2>
Plots a surface and contours
</h2>
<h3>Description</h3>
<p>Creates different plots of the fitted surface of a Krig object. This is a
quick way to look at the fitted function over reasonable default
ranges.
</p>
<h3>Usage</h3>
<pre>
## S3 method for class 'Krig'
surface(
object, grid.list = NULL, extrap = FALSE,
graphics.reset = NULL, xlab = NULL, ylab = NULL, main
= NULL, zlab = NULL, zlim = NULL, levels = NULL, type
= "C", nx = 80, ny = 80, ...)
## S3 method for class 'mKrig'
surface(
object, grid.list = NULL, extrap = FALSE,
graphics.reset = NULL, xlab = NULL, ylab = NULL, main
= NULL, zlab = NULL, zlim = NULL, levels = NULL, type
= "C", nx = 80, ny = 80, ...)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>object</code></td>
<td>
<p>A Krig object or an mKrig object.
</p>
</td></tr>
<tr valign="top"><td><code>grid.list</code></td>
<td>
<p>A list with as many components as variables describing the surface.
All components should have a single value except the two that give the
grid points for evaluation. If the matrix or data frame has column names,
these must appear in the grid list. If grid.list is missing an the
surface has just two dimensions the grid is based on the ranges of the
observed data.
</p>
</td></tr>
<tr valign="top"><td><code>extrap</code></td>
<td>
<p>Extrapolation beyond the range of the data. If false only the
convex hull of the observations is plotted. Default is false.
</p>
</td></tr>
<tr valign="top"><td><code>graphics.reset</code></td>
<td>
<p>Reset to original graphics parameters after function plotting.
</p>
</td></tr>
<tr valign="top"><td><code>type</code></td>
<td>
<p>Type of plot as a character. "p" perspective plot (persp). "c" contour
plot (contour). "b" a two panel figure with perspective and contour
plots. "I" image plot with legend strip (image.plot). "C" image plot
with contours overlaid. Image with contour is the default.
</p>
</td></tr>
<tr valign="top"><td><code>main</code></td>
<td>
<p>Title of plot</p>
</td></tr>
<tr valign="top"><td><code>xlab</code></td>
<td>
<p>x axis label</p>
</td></tr>
<tr valign="top"><td><code>ylab</code></td>
<td>
<p>y axis label</p>
</td></tr>
<tr valign="top"><td><code>zlab</code></td>
<td>
<p>z axis label if "p" or "b" type is used.</p>
</td></tr>
<tr valign="top"><td><code>zlim</code></td>
<td>
<p>Z limits passed to persp</p>
</td></tr>
<tr valign="top"><td><code>levels</code></td>
<td>
<p>Contour levels passed to contour. </p>
</td></tr>
<tr valign="top"><td><code>nx</code></td>
<td>
<p>Number of grid points to evaluate surface on the horizontal
axis (the x-axis). </p>
</td></tr>
<tr valign="top"><td><code>ny</code></td>
<td>
<p>Number of grid points to evaluate surface on the vertical
axis (the y-axis). </p>
</td></tr>
<tr valign="top"><td><code>...</code></td>
<td>
<p>Any other plotting options.
</p>
</td></tr>
</table>
<h3>Details</h3>
<p>This function is essentially a combination of predictSurface and
plot.surface. It may not always give a great rendition but is easy to use
for checking the fitted surface. The default of extrap=F is designed to
discourage looking at the estimated surface outside the range of
the observations.
</p>
<p>NOTE: that any Z covariates will b edropped and only the spatial part of
the model will be evaluated.
</p>
<h3>See Also</h3>
<p><code><a href="Krig.html">Krig</a></code>
predictSurface, plot.surface, image.plot
</p>
<h3>Examples</h3>
<pre>
fit<- Krig(ChicagoO3$x,ChicagoO3$y, theta=30) # krig fit
#Image plot of surface with nice, smooth contours and shading
surface(fit, type="C", nx=128, ny=128)
</pre>
<hr /><div style="text-align: center;">[Package <em>fields</em> version 9.9 <a href="00Index.html">Index</a>]</div>
</body></html>