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 |
; 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)
Draws the density function and the grid.