utils-gridding2d {fMultivar} | R Documentation |
Bivariate Gridded Data Sets
Description
Functions which allow to generate bivariate gridded data sets.
Grid Data Functions:
gridData | generates a grid data set of class 'gridData', |
persp | generates a perspective plot from a grid data set, |
contour | generates a contour plot from a grid data set. |
Usage
gridData(x = (-10:10)/10, y = x, z = outer(x, y, function(x, y) (x^2+y^2) ) )
## S3 method for class 'gridData'
persp(x, theta = -40, phi = 30, col = "steelblue",
ticktype = "detailed", ...)
## S3 method for class 'gridData'
contour(x, addImage = TRUE, ...)
Arguments
addImage |
[contour] - |
x , y , z |
[gridData] - |
theta , phi , col , ticktype |
[persp] - |
... |
[contour][persp] - |
Value
gridData
-
A list with at least three entries, x
, y
and z
.
The returned values, can be directly used by the persp.gridData()
and contour.gridData
3D plotting methods.
Author(s)
Diethelm Wuertz for the Rmetrics R-port,
H. Akima for the Fortran Code of the Akima spline interpolation routine.
Examples
## gridData -
# Grid Data Set:
gD = gridData()
persp(gD)
contour(gD)