Library: | graphic |
See also: | grlinreg2 grsurface grcontour2 grsunflower contour3 |
Quantlet: | grcontour3 | |
Description: | generates a contour plot from a 4-dimensional dataset x. |
Usage: | gs = grcontour3 (x, c, {, col}) | |
Input: | ||
x | n x 4 matrix | |
c | m x 1 vector | |
col | m x 1 color | |
Output: | ||
gs | composed graphical object |
library("graphic") x = grid(-#(3,3,3), #(0.5,0.5,0.5), #(13,13,13)) f = exp(-0.5.*sum(x^2,2))./(2.*pi)^1.5 c = #(0.25, 0.5, 0.75).*max(f) gs = grcontour3(x~f, c) d = createdisplay(1,1) show(d, 1, 1, gs)
shows a contour plot