Resources

Positioning the Inset

/****************************************************************/
/*          S A S   S A M P L E   L I B R A R Y                 */
/*                                                              */
/*    NAME: CAPINS2                                             */
/*   TITLE: Positioning the Inset                               */
/* PRODUCT: QC                                                  */
/*  SYSTEM: ALL                                                 */
/*    KEYS: Capability Analysis, Insets,                        */
/*   PROCS: CAPABILITY                                          */
/*    DATA:                                                     */
/*                                                              */
/* SUPPORT: saswgr                                              */
/*     REF: SAS/QC Software:  Usage and Reference, Version 6,   */
/*          First Edition, Volume 1 and Volume 2                */
/*    MISC:                                                     */
/*                                                              */
/*  Examples in the documentation were created using the        */
/*    statement:  ods listing style=statistical;                */
/*                                                              */
/****************************************************************/

data Wire;
   label Strength='Torsion Strength in lb/in';
   input Strength @@;
   datalines;
25 25 36 31 26 36 29 37 37 20
34 27 21 35 30 41 33 21 26 26
19 25 14 32 30 29 31 26 22 24
34 33 28 26 43 30 40 32 32 31
25 26 27 34 33 27 33 29 30 31
;


ods graphics off;
title 'Torsion Strength of Copper Wire';
proc capability data=Wire;
   histogram Strength / odstitle = title;
   inset n     / header='Position = NW' pos=nw;
   inset mean  / header='Position = N ' pos=n ;
   inset sum   / header='Position = NE' pos=ne;
   inset max   / header='Position = E ' pos=e ;
   inset min   / header='Position = SE' pos=se;
   inset nobs  / header='Position = S ' pos=s ;
   inset range / header='Position = SW' pos=sw;
   inset mode  / header='Position = W ' pos=w ;
run;

title 'Torsion Strength of Copper Wire';
proc capability data=Wire;
   histogram Strength;
   inset n / header   = 'Position=(12.5,10)'
             position = (12.5,10) data;
run;

title 'Torsion Strength of Copper Wire';
proc capability data=Wire;
   histogram Strength;
   inset min / position = (5,25)
               header   = 'Position=(5,25)'
               refpoint = tl;
   inset max / position = (95,95)
               header   = 'Position=(95,95)'
               refpoint = tr;
run;