Learn R Programming

fMultivar (version 4031.84)

utils-grid2d: Bivariate Density Tools

Description

Grid generator for bivariate distributions.

Usage

grid2d(x = (0:10)/10, y = x)

Value

grid2d

returns a list with two vectors named $x and $y spanning the grid defined by the coordinate vectors x and y.

Arguments

x, y

two numeric vectors defining the x and y coordinates.

Author

Diethelm Wuertz.

Examples

Run this code
## grid2d -
   # Create a square grid:
   x <- seq(0, 10, length = 6)
   X <- grid2d(x = x, y = x)
   cbind(X$x, X$y)

Run the code above in your browser using DataLab