| Library: | graphic |
| See also: | grlinreg2 grsurface grcontour3 contour2 |
| Quantlet: | grcontour2 | |
| Description: | Generates a contour plot from a 3-dimensional dataset x. |
| Usage: | gs = grcontour2 (x, c, {, col}) | |
| Input: | ||
| x | n x 3 matrix | |
| c | m x 1 vector | |
| col | m x 1 color | |
| Output: | ||
| gs | composed graphical object | |
library ("graphic")
x = grid (#(-3,-3), #(0.25,0.25), #(25,25))
f = exp(-0.5.*(x[,1]^2+x[,2]^2))./(2.*pi)
c = (1:9).*max(f)./10
gs = grcontour2 (x~f, c)
d = createdisplay (1,1)
show (d, 1, 1, gs)
shows a contour plot
| Library: | graphic |
| See also: | grlinreg2 grsurface grcontour3 contour2 |