O'Reilly logo

SAS ODS Graphics Designer by Example by Jeanette Bottitta, Sanjay Matange

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix: Code for Select Examples

Code for the First Example in Chapter 1

Code for the Classification Panel Example in Chapter 5

Code for the Survival Plot Example in Chapter 5

Code for the Axis Customization Example in Chapter 7

Code for the First Example in Chapter 1

The following code produces the output shown in Figure 1.1:

/*--WORK.CARMEANS--*/

proc means data=sashelp.cars noprint;

  class type;

  var mpg_city mpg_highway;

  output out=carmeans

         mean=mean_city mean_highway

               lclm=lcl_city lcl_highway

               uclm=ucl_city ucl_highway;

  run;

data carmeans;

  set carmeans(where=(_type_=1));

  drop _type_;

  format mean_city mean_highway lcl_city lcl_highway ucl_city

           ucl_highway 3.0;

  label mean_city='City'; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required