Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 1. GTL and the SG Procedures > 1.17 Three-Dimensional Surface Plot

1.17 Three-Dimensional Surface Plot

A three-dimensional surface plot is a projection of a three-dimensional surface such as a bivariate probability density function or other mathematical surface onto a plane. The shape of the surface can be displayed by using lines, or color and shading, or both. The following steps create a surface plot of a bivariate normal density function and display the results in Figure 1.94:

data normal;
   do x = -2 to 2 by 0.1;
      do y = -2 to 2 by 0.1;
         z = 0.164 * exp(-0.5 * ((x + y * 0.25) * x + (x * 0.25 + y) * y));
         output;
      end;
   end;
run;

proc template;
   define statgraph surfaceplotparm1;
      begingraph;
         entrytitle "Surface Plot of Normal Density Function";
         layout overlay3d;
            surfaceplotparm x=x y=y z=z;
         endlayout;
      endgraph;
   end;
run;


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint