Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: graphic
See also: grxline gryline grcircle

Quantlet: grgrid2
Description: creates a grid that encloses the given data. The grid will be drawn in light grey, if the optional color is not given.

Usage: net=grgrid2(data,h{,col})
Input:
data n x 2 matrix input data, to be enclosed by the grid
h 2 x 1 vector defines the mesh size of the grid
col color defines the color of the grid (optional, default: light grey)
Output:
net contains the grid lines

Note:

Example:
; plot the normal density function
library("graphic")
x =(-30:30)/10
y = pdfn(x)
net = grgrid2(x~y, #(0.5, 0.05))
d = createdisplay(1,1)
show(d, 1, 1, x~y, net)

Result:
Draws the density function and the grid.



Author: S. Klinke, 20010325
(C) MD*TECH Method and Data Technologies, 05.02.2006