BookmarkSubscribeRSS Feed
blackraven
Fluorite | Level 6

Hi.

 

I am running

 

axis1 major=(n=10);

proc univariate data = _last_;

var x;

histogram / endpoints = 0 to 10 by 0.33 haxis = axis1;

run;

 

I get a graph with 0.33 binned X-axis with three bins per 1 unit, but the major ticks are at 0, 1.67, 3.3, 4.99, etc.

I like to have the tick marks at 1, 2, 3, etc. I tried using several way, but cannot come up with this.

 

How could I do this?

8 REPLIES 8
Rick_SAS
SAS Super FREQ

For an explanation and example, see the article "Choosing bins for histograms in SAS."

 

Because I don't have your data I can't be sure what you need, but try 

histogram x / endpoints=(0 to 10);

blackraven
Fluorite | Level 6

Hi.

 

This works fine with following code:

 

title2 "Midpoints";
proc sgplot data=_last_;
histogram x / binwidth=0.33 binstart=0 showbins;  /* center first bin at 0 */
xaxis values=(0 to 10 by 1);
run;

 

Now bins will be 3 per 1 unit and major tick marks at 1 2 etc. But can I do this with proc univariate? I am using statistics in the graph from univariate procedure.

 

Rick_SAS
SAS Super FREQ

Ahh, I think I understand your question now. You want to specify the endpoints of the bins, but you also want to specify the axis tick marks INDEPENDENTLY.  You are trying to use the old SAS/GRAPH AXISn statement to specify the ticks for the axis.

 

I do not use the traditional graphics that use SAS/GRAPH statements. Sorry.

djrisks
Barite | Level 11

Hi,

 

Have you got an example of the data or your figure please?  Things that springs to mind are modifying the template that Proc Univariate uses or adding the stats that you want into the figure that is produced by Proc SGPLOT. It could be easier to add the stats into the SGPLOT figure by using annotation statements such as DRAWTEXT, ENTRY, XAXISTABLE, etc.

blackraven
Fluorite | Level 6

Hi.

 

Here is an example.

 

I like to have the x-axis in integers 1, 2, 3. The bins are 3 per scale integer.

 

Histogram5.png


Histogram5.png
Jay54
Meteorite | Level 14

Or an INSET statement.

blackraven
Fluorite | Level 6

Yes, it seems there need to be a two step procedure to do this.

djrisks
Barite | Level 11

Yes, it's also possible to also change with the template too. The dynamic variables _xticks _xmin and _xmax control the xaxis. These can be replaced with macro variables in the template which I have done, and then the ranges can be controlled with the macro variables such as:

 

%let _XTICKSn = %str(1 2 3 4 5 6 7 8 9 10);
%let _XMINn = 0;
%let _XMAXn = 10;

 

Although, the axis will always take on those values from 0 to 10 even if the data doesn't fit, so this way should be used with caution.

 

Below is the updated template that proc univariate uses, and will need to be ran first too.

 

  proc template;
define statgraph Base.Univariate.Graphics.Histogram;
   dynamic _VARNAME _VARLABEL _YLABEL _XTICKS _XMIN _XMAX _XVALUES _CURVELEGEND _LEGENDTITLE
      _HANG _NOHANG _XDISPLAY _YDISPLAY _CFILL _GRID _MARGININSET _PADLEFT _PADRIGHT _PADTOP
      _PADBOTTOM _PADLEGEND _YMIN _YMAX _YTICKS _GRAPH_TITLE1 _GRAPH_TITLE2 _TITLE1_VARLABEL
      _TITLE1_NONE _GRAPH_FOOTNOTE1 _GRAPH_FOOTNOTE2 _MARGIN1 _M1_NCOLS _M1_HEADER _M1_BORDER
      _M1_GUTTER _M1_CFILL _M1_BGCOLOR _M1_LABEL1 _M1_VALUE1 _M1_LABEL2 _M1_VALUE2 _M1_LABEL3
      _M1_VALUE3 _M1_LABEL4 _M1_VALUE4 _M1_LABEL5 _M1_VALUE5 _M1_LABEL6 _M1_VALUE6 _M1_LABEL7
      _M1_VALUE7 _M1_LABEL8 _M1_VALUE8 _M1_LABEL9 _M1_VALUE9 _M1_LABEL10 _M1_VALUE10 _M1_LABEL11
      _M1_VALUE11 _M1_LABEL12 _M1_VALUE12 _M1_LABEL13 _M1_VALUE13 _M1_LABEL14 _M1_VALUE14
      _M1_LABEL15 _M1_VALUE15 _M1_LABEL16 _M1_VALUE16 _M1_LABEL17 _M1_VALUE17 _M1_LABEL18
      _M1_VALUE18 _M1_LABEL19 _M1_VALUE19 _M1_LABEL20 _M1_VALUE20 _M1_LABEL21 _M1_VALUE21
      _M1_LABEL22 _M1_VALUE22 _M1_LABEL23 _M1_VALUE23 _M1_LABEL24 _M1_VALUE24 _M1_LABEL25
      _M1_VALUE25 _M1_LABEL26 _M1_VALUE26 _M1_LABEL27 _M1_VALUE27 _M1_LABEL28 _M1_VALUE28
      _M1_LABEL29 _M1_VALUE29 _M1_LABEL30 _M1_VALUE30 _M1_LABEL31 _M1_VALUE31 _M1_LABEL32
      _M1_VALUE32 _M1_LABEL33 _M1_VALUE33 _M1_LABEL34 _M1_VALUE34 _M1_LABEL35 _M1_VALUE35
      _M1_LABEL36 _M1_VALUE36 _M1_LABEL37 _M1_VALUE37 _M1_LABEL38 _M1_VALUE38 _M1_LABEL39
      _M1_VALUE39 _M1_LABEL40 _M1_VALUE40 _M1_LABEL41 _M1_VALUE41 _M1_LABEL42 _M1_VALUE42
      _M1_LABEL43 _M1_VALUE43 _M1_LABEL44 _M1_VALUE44 _M1_LABEL45 _M1_VALUE45 _M1_LABEL46
      _M1_VALUE46 _M1_LABEL47 _M1_VALUE47 _M1_LABEL48 _M1_VALUE48 _M1_LABEL49 _M1_VALUE49
      _M1_LABEL50 _M1_VALUE50 _MARGIN2 _M2_NCOLS _M2_HEADER _M2_BORDER _M2_GUTTER _M2_CFILL
      _M2_BGCOLOR _M2_LABEL1 _M2_VALUE1 _M2_LABEL2 _M2_VALUE2 _M2_LABEL3 _M2_VALUE3 _M2_LABEL4
      _M2_VALUE4 _M2_LABEL5 _M2_VALUE5 _M2_LABEL6 _M2_VALUE6 _M2_LABEL7 _M2_VALUE7 _M2_LABEL8
      _M2_VALUE8 _M2_LABEL9 _M2_VALUE9 _M2_LABEL10 _M2_VALUE10 _M2_LABEL11 _M2_VALUE11
      _M2_LABEL12 _M2_VALUE12 _M2_LABEL13 _M2_VALUE13 _M2_LABEL14 _M2_VALUE14 _M2_LABEL15
      _M2_VALUE15 _M2_LABEL16 _M2_VALUE16 _M2_LABEL17 _M2_VALUE17 _M2_LABEL18 _M2_VALUE18
      _M2_LABEL19 _M2_VALUE19 _M2_LABEL20 _M2_VALUE20 _M2_LABEL21 _M2_VALUE21 _M2_LABEL22
      _M2_VALUE22 _M2_LABEL23 _M2_VALUE23 _M2_LABEL24 _M2_VALUE24 _M2_LABEL25 _M2_VALUE25
      _M2_LABEL26 _M2_VALUE26 _M2_LABEL27 _M2_VALUE27 _M2_LABEL28 _M2_VALUE28 _M2_LABEL29
      _M2_VALUE29 _M2_LABEL30 _M2_VALUE30 _M2_LABEL31 _M2_VALUE31 _M2_LABEL32 _M2_VALUE32
      _M2_LABEL33 _M2_VALUE33 _M2_LABEL34 _M2_VALUE34 _M2_LABEL35 _M2_VALUE35 _M2_LABEL36
      _M2_VALUE36 _M2_LABEL37 _M2_VALUE37 _M2_LABEL38 _M2_VALUE38 _M2_LABEL39 _M2_VALUE39
      _M2_LABEL40 _M2_VALUE40 _M2_LABEL41 _M2_VALUE41 _M2_LABEL42 _M2_VALUE42 _M2_LABEL43
      _M2_VALUE43 _M2_LABEL44 _M2_VALUE44 _M2_LABEL45 _M2_VALUE45 _M2_LABEL46 _M2_VALUE46
      _M2_LABEL47 _M2_VALUE47 _M2_LABEL48 _M2_VALUE48 _M2_LABEL49 _M2_VALUE49 _M2_LABEL50
      _M2_VALUE50 _MARGIN3 _M3_NCOLS _M3_HEADER _M3_BORDER _M3_GUTTER _M3_CFILL _M3_BGCOLOR
      _M3_LABEL1 _M3_VALUE1 _M3_LABEL2 _M3_VALUE2 _M3_LABEL3 _M3_VALUE3 _M3_LABEL4 _M3_VALUE4
      _M3_LABEL5 _M3_VALUE5 _M3_LABEL6 _M3_VALUE6 _M3_LABEL7 _M3_VALUE7 _M3_LABEL8 _M3_VALUE8
      _M3_LABEL9 _M3_VALUE9 _M3_LABEL10 _M3_VALUE10 _M3_LABEL11 _M3_VALUE11 _M3_LABEL12
      _M3_VALUE12 _M3_LABEL13 _M3_VALUE13 _M3_LABEL14 _M3_VALUE14 _M3_LABEL15 _M3_VALUE15
      _M3_LABEL16 _M3_VALUE16 _M3_LABEL17 _M3_VALUE17 _M3_LABEL18 _M3_VALUE18 _M3_LABEL19
      _M3_VALUE19 _M3_LABEL20 _M3_VALUE20 _M3_LABEL21 _M3_VALUE21 _M3_LABEL22 _M3_VALUE22
      _M3_LABEL23 _M3_VALUE23 _M3_LABEL24 _M3_VALUE24 _M3_LABEL25 _M3_VALUE25 _M3_LABEL26
      _M3_VALUE26 _M3_LABEL27 _M3_VALUE27 _M3_LABEL28 _M3_VALUE28 _M3_LABEL29 _M3_VALUE29
      _M3_LABEL30 _M3_VALUE30 _M3_LABEL31 _M3_VALUE31 _M3_LABEL32 _M3_VALUE32 _M3_LABEL33
      _M3_VALUE33 _M3_LABEL34 _M3_VALUE34 _M3_LABEL35 _M3_VALUE35 _M3_LABEL36 _M3_VALUE36
      _M3_LABEL37 _M3_VALUE37 _M3_LABEL38 _M3_VALUE38 _M3_LABEL39 _M3_VALUE39 _M3_LABEL40
      _M3_VALUE40 _M3_LABEL41 _M3_VALUE41 _M3_LABEL42 _M3_VALUE42 _M3_LABEL43 _M3_VALUE43
      _M3_LABEL44 _M3_VALUE44 _M3_LABEL45 _M3_VALUE45 _M3_LABEL46 _M3_VALUE46 _M3_LABEL47
      _M3_VALUE47 _M3_LABEL48 _M3_VALUE48 _M3_LABEL49 _M3_VALUE49 _M3_LABEL50 _M3_VALUE50
      _MARGIN4 _M4_NCOLS _M4_HEADER _M4_BORDER _M4_GUTTER _M4_CFILL _M4_BGCOLOR _M4_LABEL1
      _M4_VALUE1 _M4_LABEL2 _M4_VALUE2 _M4_LABEL3 _M4_VALUE3 _M4_LABEL4 _M4_VALUE4 _M4_LABEL5
      _M4_VALUE5 _M4_LABEL6 _M4_VALUE6 _M4_LABEL7 _M4_VALUE7 _M4_LABEL8 _M4_VALUE8 _M4_LABEL9
      _M4_VALUE9 _M4_LABEL10 _M4_VALUE10 _M4_LABEL11 _M4_VALUE11 _M4_LABEL12 _M4_VALUE12
      _M4_LABEL13 _M4_VALUE13 _M4_LABEL14 _M4_VALUE14 _M4_LABEL15 _M4_VALUE15 _M4_LABEL16
      _M4_VALUE16 _M4_LABEL17 _M4_VALUE17 _M4_LABEL18 _M4_VALUE18 _M4_LABEL19 _M4_VALUE19
      _M4_LABEL20 _M4_VALUE20 _M4_LABEL21 _M4_VALUE21 _M4_LABEL22 _M4_VALUE22 _M4_LABEL23
      _M4_VALUE23 _M4_LABEL24 _M4_VALUE24 _M4_LABEL25 _M4_VALUE25 _M4_LABEL26 _M4_VALUE26
      _M4_LABEL27 _M4_VALUE27 _M4_LABEL28 _M4_VALUE28 _M4_LABEL29 _M4_VALUE29 _M4_LABEL30
      _M4_VALUE30 _M4_LABEL31 _M4_VALUE31 _M4_LABEL32 _M4_VALUE32 _M4_LABEL33 _M4_VALUE33
      _M4_LABEL34 _M4_VALUE34 _M4_LABEL35 _M4_VALUE35 _M4_LABEL36 _M4_VALUE36 _M4_LABEL37
      _M4_VALUE37 _M4_LABEL38 _M4_VALUE38 _M4_LABEL39 _M4_VALUE39 _M4_LABEL40 _M4_VALUE40
      _M4_LABEL41 _M4_VALUE41 _M4_LABEL42 _M4_VALUE42 _M4_LABEL43 _M4_VALUE43 _M4_LABEL44
      _M4_VALUE44 _M4_LABEL45 _M4_VALUE45 _M4_LABEL46 _M4_VALUE46 _M4_LABEL47 _M4_VALUE47
      _M4_LABEL48 _M4_VALUE48 _M4_LABEL49 _M4_VALUE49 _M4_LABEL50 _M4_VALUE50 _HREFLABPOS
      _VREFLABPOS _INSET1 _I1_HEADER _I1_BORDER _I1_CFILL _I1_VALIGN _I1_HALIGN _I1_BGCOLOR
      _I1_LABEL1 _I1_VALUE1 _I1_LABEL2 _I1_VALUE2 _I1_LABEL3 _I1_VALUE3 _I1_LABEL4 _I1_VALUE4
      _I1_LABEL5 _I1_VALUE5 _I1_LABEL6 _I1_VALUE6 _I1_LABEL7 _I1_VALUE7 _I1_LABEL8 _I1_VALUE8
      _I1_LABEL9 _I1_VALUE9 _I1_LABEL10 _I1_VALUE10 _I1_LABEL11 _I1_VALUE11 _I1_LABEL12
      _I1_VALUE12 _I1_LABEL13 _I1_VALUE13 _I1_LABEL14 _I1_VALUE14 _I1_LABEL15 _I1_VALUE15
      _I1_LABEL16 _I1_VALUE16 _I1_LABEL17 _I1_VALUE17 _I1_LABEL18 _I1_VALUE18 _I1_LABEL19
      _I1_VALUE19 _I1_LABEL20 _I1_VALUE20 _INSET2 _I2_HEADER _I2_BORDER _I2_CFILL _I2_VALIGN
      _I2_HALIGN _I2_BGCOLOR _I2_LABEL1 _I2_VALUE1 _I2_LABEL2 _I2_VALUE2 _I2_LABEL3 _I2_VALUE3
      _I2_LABEL4 _I2_VALUE4 _I2_LABEL5 _I2_VALUE5 _I2_LABEL6 _I2_VALUE6 _I2_LABEL7 _I2_VALUE7
      _I2_LABEL8 _I2_VALUE8 _I2_LABEL9 _I2_VALUE9 _I2_LABEL10 _I2_VALUE10 _I2_LABEL11
      _I2_VALUE11 _I2_LABEL12 _I2_VALUE12 _I2_LABEL13 _I2_VALUE13 _I2_LABEL14 _I2_VALUE14
      _I2_LABEL15 _I2_VALUE15 _I2_LABEL16 _I2_VALUE16 _I2_LABEL17 _I2_VALUE17 _I2_LABEL18
      _I2_VALUE18 _I2_LABEL19 _I2_VALUE19 _I2_LABEL20 _I2_VALUE20 _INSET3 _I3_HEADER _I3_BORDER
      _I3_CFILL _I3_VALIGN _I3_HALIGN _I3_BGCOLOR _I3_LABEL1 _I3_VALUE1 _I3_LABEL2 _I3_VALUE2
      _I3_LABEL3 _I3_VALUE3 _I3_LABEL4 _I3_VALUE4 _I3_LABEL5 _I3_VALUE5 _I3_LABEL6 _I3_VALUE6
      _I3_LABEL7 _I3_VALUE7 _I3_LABEL8 _I3_VALUE8 _I3_LABEL9 _I3_VALUE9 _I3_LABEL10 _I3_VALUE10
      _I3_LABEL11 _I3_VALUE11 _I3_LABEL12 _I3_VALUE12 _I3_LABEL13 _I3_VALUE13 _I3_LABEL14
      _I3_VALUE14 _I3_LABEL15 _I3_VALUE15 _I3_LABEL16 _I3_VALUE16 _I3_LABEL17 _I3_VALUE17
      _I3_LABEL18 _I3_VALUE18 _I3_LABEL19 _I3_VALUE19 _I3_LABEL20 _I3_VALUE20 _INSET4 _I4_HEADER
      _I4_BORDER _I4_CFILL _I4_VALIGN _I4_HALIGN _I4_BGCOLOR _I4_LABEL1 _I4_VALUE1 _I4_LABEL2
      _I4_VALUE2 _I4_LABEL3 _I4_VALUE3 _I4_LABEL4 _I4_VALUE4 _I4_LABEL5 _I4_VALUE5 _I4_LABEL6
      _I4_VALUE6 _I4_LABEL7 _I4_VALUE7 _I4_LABEL8 _I4_VALUE8 _I4_LABEL9 _I4_VALUE9 _I4_LABEL10
      _I4_VALUE10 _I4_LABEL11 _I4_VALUE11 _I4_LABEL12 _I4_VALUE12 _I4_LABEL13 _I4_VALUE13
      _I4_LABEL14 _I4_VALUE14 _I4_LABEL15 _I4_VALUE15 _I4_LABEL16 _I4_VALUE16 _I4_LABEL17
      _I4_VALUE17 _I4_LABEL18 _I4_VALUE18 _I4_LABEL19 _I4_VALUE19 _I4_LABEL20 _I4_VALUE20
      _byline_ _bytitle_ _byfootnote_;
	     nmvar  _XMINn _XMAXn;
		 mvar _XTICKSn;

   BeginGraph;
      if (NOT EXISTS(_TITLE1_NONE))
         if (EXISTS(_GRAPH_TITLE1))
            EntryTitle _GRAPH_TITLE1;
         else
            if (_TITLE1_VARLABEL)
               EntryTitle "Distribution of " _VARLABEL;
            else
               EntryTitle "Distribution of " _VARNAME;
            endif;
         endif;
      endif;
      if (EXISTS(_GRAPH_TITLE2))
         EntryTitle _GRAPH_TITLE2;
      endif;
      if (_MARGININSET)
         Layout Lattice;
            Layout Lattice / pad=(bottom=_PADLEGEND);
               if (EXISTS(_MARGIN1))
                  Sidebar / align=_MARGIN1;
                     Layout Gridded / columns=1 border=_M1_BORDER opaque=_M1_CFILL
                        backgroundcolor=_M1_BGCOLOR;
                        Layout Gridded / columns=1 border=FALSE;
                           Entry _M1_HEADER / textattrs=GRAPHLABELTEXT border=FALSE;
                        endLayout;
                        Layout Overlay / border=FALSE;
                           Layout Gridded / columns=_M1_NCOLS border=FALSE columngutter=
                              _M1_GUTTER valign=TOP;
                              Entry halign=LEFT _M1_LABEL1;
                              Entry halign=RIGHT _M1_VALUE1;
                              Entry halign=LEFT _M1_LABEL2;
                              Entry halign=RIGHT _M1_VALUE2;
                              Entry halign=LEFT _M1_LABEL3;
                              Entry halign=RIGHT _M1_VALUE3;
                              Entry halign=LEFT _M1_LABEL4;
                              Entry halign=RIGHT _M1_VALUE4;
                              Entry halign=LEFT _M1_LABEL5;
                              Entry halign=RIGHT _M1_VALUE5;
                              Entry halign=LEFT _M1_LABEL6;
                              Entry halign=RIGHT _M1_VALUE6;
                              Entry halign=LEFT _M1_LABEL7;
                              Entry halign=RIGHT _M1_VALUE7;
                              Entry halign=LEFT _M1_LABEL8;
                              Entry halign=RIGHT _M1_VALUE8;
                              Entry halign=LEFT _M1_LABEL9;
                              Entry halign=RIGHT _M1_VALUE9;
                              Entry halign=LEFT _M1_LABEL10;
                              Entry halign=RIGHT _M1_VALUE10;
                              Entry halign=LEFT _M1_LABEL11;
                              Entry halign=RIGHT _M1_VALUE11;
                              Entry halign=LEFT _M1_LABEL12;
                              Entry halign=RIGHT _M1_VALUE12;
                              Entry halign=LEFT _M1_LABEL13;
                              Entry halign=RIGHT _M1_VALUE13;
                              Entry halign=LEFT _M1_LABEL14;
                              Entry halign=RIGHT _M1_VALUE14;
                              Entry halign=LEFT _M1_LABEL15;
                              Entry halign=RIGHT _M1_VALUE15;
                              Entry halign=LEFT _M1_LABEL16;
                              Entry halign=RIGHT _M1_VALUE16;
                              Entry halign=LEFT _M1_LABEL17;
                              Entry halign=RIGHT _M1_VALUE17;
                              Entry halign=LEFT _M1_LABEL18;
                              Entry halign=RIGHT _M1_VALUE18;
                              Entry halign=LEFT _M1_LABEL19;
                              Entry halign=RIGHT _M1_VALUE19;
                              Entry halign=LEFT _M1_LABEL20;
                              Entry halign=RIGHT _M1_VALUE20;
                              Entry halign=LEFT _M1_LABEL21;
                              Entry halign=RIGHT _M1_VALUE21;
                              Entry halign=LEFT _M1_LABEL22;
                              Entry halign=RIGHT _M1_VALUE22;
                              Entry halign=LEFT _M1_LABEL23;
                              Entry halign=RIGHT _M1_VALUE23;
                              Entry halign=LEFT _M1_LABEL24;
                              Entry halign=RIGHT _M1_VALUE24;
                              Entry halign=LEFT _M1_LABEL25;
                              Entry halign=RIGHT _M1_VALUE25;
                              Entry halign=LEFT _M1_LABEL26;
                              Entry halign=RIGHT _M1_VALUE26;
                              Entry halign=LEFT _M1_LABEL27;
                              Entry halign=RIGHT _M1_VALUE27;
                              Entry halign=LEFT _M1_LABEL28;
                              Entry halign=RIGHT _M1_VALUE28;
                              Entry halign=LEFT _M1_LABEL29;
                              Entry halign=RIGHT _M1_VALUE29;
                              Entry halign=LEFT _M1_LABEL30;
                              Entry halign=RIGHT _M1_VALUE30;
                              Entry halign=LEFT _M1_LABEL31;
                              Entry halign=RIGHT _M1_VALUE31;
                              Entry halign=LEFT _M1_LABEL32;
                              Entry halign=RIGHT _M1_VALUE32;
                              Entry halign=LEFT _M1_LABEL33;
                              Entry halign=RIGHT _M1_VALUE33;
                              Entry halign=LEFT _M1_LABEL34;
                              Entry halign=RIGHT _M1_VALUE34;
                              Entry halign=LEFT _M1_LABEL35;
                              Entry halign=RIGHT _M1_VALUE35;
                              Entry halign=LEFT _M1_LABEL36;
                              Entry halign=RIGHT _M1_VALUE36;
                              Entry halign=LEFT _M1_LABEL37;
                              Entry halign=RIGHT _M1_VALUE37;
                              Entry halign=LEFT _M1_LABEL38;
                              Entry halign=RIGHT _M1_VALUE38;
                              Entry halign=LEFT _M1_LABEL39;
                              Entry halign=RIGHT _M1_VALUE39;
                              Entry halign=LEFT _M1_LABEL40;
                              Entry halign=RIGHT _M1_VALUE40;
                              Entry halign=LEFT _M1_LABEL41;
                              Entry halign=RIGHT _M1_VALUE41;
                              Entry halign=LEFT _M1_LABEL42;
                              Entry halign=RIGHT _M1_VALUE42;
                              Entry halign=LEFT _M1_LABEL43;
                              Entry halign=RIGHT _M1_VALUE43;
                              Entry halign=LEFT _M1_LABEL44;
                              Entry halign=RIGHT _M1_VALUE44;
                              Entry halign=LEFT _M1_LABEL45;
                              Entry halign=RIGHT _M1_VALUE45;
                              Entry halign=LEFT _M1_LABEL46;
                              Entry halign=RIGHT _M1_VALUE46;
                              Entry halign=LEFT _M1_LABEL47;
                              Entry halign=RIGHT _M1_VALUE47;
                              Entry halign=LEFT _M1_LABEL48;
                              Entry halign=RIGHT _M1_VALUE48;
                              Entry halign=LEFT _M1_LABEL49;
                              Entry halign=RIGHT _M1_VALUE49;
                              Entry halign=LEFT _M1_LABEL50;
                              Entry halign=RIGHT _M1_VALUE50;
                           endLayout;
                        endLayout;
                     endLayout;
                  endSidebar;
               endif;
               if (EXISTS(_MARGIN2))
                  Sidebar / align=_MARGIN2;
                     Layout Gridded / columns=1 border=_M2_BORDER opaque=_M2_CFILL
                        backgroundcolor=_M2_BGCOLOR;
                        Layout Gridded / columns=1 border=FALSE;
                           Entry _M2_HEADER / textattrs=GRAPHLABELTEXT border=FALSE;
                        endLayout;
                        Layout Overlay / border=FALSE;
                           Layout Gridded / columns=_M2_NCOLS border=FALSE columngutter=
                              _M2_GUTTER valign=TOP;
                              Entry halign=LEFT _M2_LABEL1;
                              Entry halign=RIGHT _M2_VALUE1;
                              Entry halign=LEFT _M2_LABEL2;
                              Entry halign=RIGHT _M2_VALUE2;
                              Entry halign=LEFT _M2_LABEL3;
                              Entry halign=RIGHT _M2_VALUE3;
                              Entry halign=LEFT _M2_LABEL4;
                              Entry halign=RIGHT _M2_VALUE4;
                              Entry halign=LEFT _M2_LABEL5;
                              Entry halign=RIGHT _M2_VALUE5;
                              Entry halign=LEFT _M2_LABEL6;
                              Entry halign=RIGHT _M2_VALUE6;
                              Entry halign=LEFT _M2_LABEL7;
                              Entry halign=RIGHT _M2_VALUE7;
                              Entry halign=LEFT _M2_LABEL8;
                              Entry halign=RIGHT _M2_VALUE8;
                              Entry halign=LEFT _M2_LABEL9;
                              Entry halign=RIGHT _M2_VALUE9;
                              Entry halign=LEFT _M2_LABEL10;
                              Entry halign=RIGHT _M2_VALUE10;
                              Entry halign=LEFT _M2_LABEL11;
                              Entry halign=RIGHT _M2_VALUE11;
                              Entry halign=LEFT _M2_LABEL12;
                              Entry halign=RIGHT _M2_VALUE12;
                              Entry halign=LEFT _M2_LABEL13;
                              Entry halign=RIGHT _M2_VALUE13;
                              Entry halign=LEFT _M2_LABEL14;
                              Entry halign=RIGHT _M2_VALUE14;
                              Entry halign=LEFT _M2_LABEL15;
                              Entry halign=RIGHT _M2_VALUE15;
                              Entry halign=LEFT _M2_LABEL16;
                              Entry halign=RIGHT _M2_VALUE16;
                              Entry halign=LEFT _M2_LABEL17;
                              Entry halign=RIGHT _M2_VALUE17;
                              Entry halign=LEFT _M2_LABEL18;
                              Entry halign=RIGHT _M2_VALUE18;
                              Entry halign=LEFT _M2_LABEL19;
                              Entry halign=RIGHT _M2_VALUE19;
                              Entry halign=LEFT _M2_LABEL20;
                              Entry halign=RIGHT _M2_VALUE20;
                              Entry halign=LEFT _M2_LABEL21;
                              Entry halign=RIGHT _M2_VALUE21;
                              Entry halign=LEFT _M2_LABEL22;
                              Entry halign=RIGHT _M2_VALUE22;
                              Entry halign=LEFT _M2_LABEL23;
                              Entry halign=RIGHT _M2_VALUE23;
                              Entry halign=LEFT _M2_LABEL24;
                              Entry halign=RIGHT _M2_VALUE24;
                              Entry halign=LEFT _M2_LABEL25;
                              Entry halign=RIGHT _M2_VALUE25;
                              Entry halign=LEFT _M2_LABEL26;
                              Entry halign=RIGHT _M2_VALUE26;
                              Entry halign=LEFT _M2_LABEL27;
                              Entry halign=RIGHT _M2_VALUE27;
                              Entry halign=LEFT _M2_LABEL28;
                              Entry halign=RIGHT _M2_VALUE28;
                              Entry halign=LEFT _M2_LABEL29;
                              Entry halign=RIGHT _M2_VALUE29;
                              Entry halign=LEFT _M2_LABEL30;
                              Entry halign=RIGHT _M2_VALUE30;
                              Entry halign=LEFT _M2_LABEL31;
                              Entry halign=RIGHT _M2_VALUE31;
                              Entry halign=LEFT _M2_LABEL32;
                              Entry halign=RIGHT _M2_VALUE32;
                              Entry halign=LEFT _M2_LABEL33;
                              Entry halign=RIGHT _M2_VALUE33;
                              Entry halign=LEFT _M2_LABEL34;
                              Entry halign=RIGHT _M2_VALUE34;
                              Entry halign=LEFT _M2_LABEL35;
                              Entry halign=RIGHT _M2_VALUE35;
                              Entry halign=LEFT _M2_LABEL36;
                              Entry halign=RIGHT _M2_VALUE36;
                              Entry halign=LEFT _M2_LABEL37;
                              Entry halign=RIGHT _M2_VALUE37;
                              Entry halign=LEFT _M2_LABEL38;
                              Entry halign=RIGHT _M2_VALUE38;
                              Entry halign=LEFT _M2_LABEL39;
                              Entry halign=RIGHT _M2_VALUE39;
                              Entry halign=LEFT _M2_LABEL40;
                              Entry halign=RIGHT _M2_VALUE40;
                              Entry halign=LEFT _M2_LABEL41;
                              Entry halign=RIGHT _M2_VALUE41;
                              Entry halign=LEFT _M2_LABEL42;
                              Entry halign=RIGHT _M2_VALUE42;
                              Entry halign=LEFT _M2_LABEL43;
                              Entry halign=RIGHT _M2_VALUE43;
                              Entry halign=LEFT _M2_LABEL44;
                              Entry halign=RIGHT _M2_VALUE44;
                              Entry halign=LEFT _M2_LABEL45;
                              Entry halign=RIGHT _M2_VALUE45;
                              Entry halign=LEFT _M2_LABEL46;
                              Entry halign=RIGHT _M2_VALUE46;
                              Entry halign=LEFT _M2_LABEL47;
                              Entry halign=RIGHT _M2_VALUE47;
                              Entry halign=LEFT _M2_LABEL48;
                              Entry halign=RIGHT _M2_VALUE48;
                              Entry halign=LEFT _M2_LABEL49;
                              Entry halign=RIGHT _M2_VALUE49;
                              Entry halign=LEFT _M2_LABEL50;
                              Entry halign=RIGHT _M2_VALUE50;
                           endLayout;
                        endLayout;
                     endLayout;
                  endSidebar;
               endif;
               Layout Lattice / pad=(top=_PADTOP bottom=_PADBOTTOM);
                  if (EXISTS(_MARGIN3))
                     Sidebar / align=_MARGIN3;
                        Layout Gridded / columns=1 border=_M3_BORDER opaque=_M3_CFILL
                           backgroundcolor=_M3_BGCOLOR;
                           Layout Gridded / columns=1 border=FALSE;
                              Entry _M3_HEADER / textattrs=GRAPHLABELTEXT border=FALSE;
                           endLayout;
                           Layout Overlay / border=FALSE;
                              Layout Gridded / columns=_M3_NCOLS border=FALSE columngutter=
                                 _M3_GUTTER valign=TOP;
                                 Entry halign=LEFT _M3_LABEL1;
                                 Entry halign=RIGHT _M3_VALUE1;
                                 Entry halign=LEFT _M3_LABEL2;
                                 Entry halign=RIGHT _M3_VALUE2;
                                 Entry halign=LEFT _M3_LABEL3;
                                 Entry halign=RIGHT _M3_VALUE3;
                                 Entry halign=LEFT _M3_LABEL4;
                                 Entry halign=RIGHT _M3_VALUE4;
                                 Entry halign=LEFT _M3_LABEL5;
                                 Entry halign=RIGHT _M3_VALUE5;
                                 Entry halign=LEFT _M3_LABEL6;
                                 Entry halign=RIGHT _M3_VALUE6;
                                 Entry halign=LEFT _M3_LABEL7;
                                 Entry halign=RIGHT _M3_VALUE7;
                                 Entry halign=LEFT _M3_LABEL8;
                                 Entry halign=RIGHT _M3_VALUE8;
                                 Entry halign=LEFT _M3_LABEL9;
                                 Entry halign=RIGHT _M3_VALUE9;
                                 Entry halign=LEFT _M3_LABEL10;
                                 Entry halign=RIGHT _M3_VALUE10;
                                 Entry halign=LEFT _M3_LABEL11;
                                 Entry halign=RIGHT _M3_VALUE11;
                                 Entry halign=LEFT _M3_LABEL12;
                                 Entry halign=RIGHT _M3_VALUE12;
                                 Entry halign=LEFT _M3_LABEL13;
                                 Entry halign=RIGHT _M3_VALUE13;
                                 Entry halign=LEFT _M3_LABEL14;
                                 Entry halign=RIGHT _M3_VALUE14;
                                 Entry halign=LEFT _M3_LABEL15;
                                 Entry halign=RIGHT _M3_VALUE15;
                                 Entry halign=LEFT _M3_LABEL16;
                                 Entry halign=RIGHT _M3_VALUE16;
                                 Entry halign=LEFT _M3_LABEL17;
                                 Entry halign=RIGHT _M3_VALUE17;
                                 Entry halign=LEFT _M3_LABEL18;
                                 Entry halign=RIGHT _M3_VALUE18;
                                 Entry halign=LEFT _M3_LABEL19;
                                 Entry halign=RIGHT _M3_VALUE19;
                                 Entry halign=LEFT _M3_LABEL20;
                                 Entry halign=RIGHT _M3_VALUE20;
                                 Entry halign=LEFT _M3_LABEL21;
                                 Entry halign=RIGHT _M3_VALUE21;
                                 Entry halign=LEFT _M3_LABEL22;
                                 Entry halign=RIGHT _M3_VALUE22;
                                 Entry halign=LEFT _M3_LABEL23;
                                 Entry halign=RIGHT _M3_VALUE23;
                                 Entry halign=LEFT _M3_LABEL24;
                                 Entry halign=RIGHT _M3_VALUE24;
                                 Entry halign=LEFT _M3_LABEL25;
                                 Entry halign=RIGHT _M3_VALUE25;
                                 Entry halign=LEFT _M3_LABEL26;
                                 Entry halign=RIGHT _M3_VALUE26;
                                 Entry halign=LEFT _M3_LABEL27;
                                 Entry halign=RIGHT _M3_VALUE27;
                                 Entry halign=LEFT _M3_LABEL28;
                                 Entry halign=RIGHT _M3_VALUE28;
                                 Entry halign=LEFT _M3_LABEL29;
                                 Entry halign=RIGHT _M3_VALUE29;
                                 Entry halign=LEFT _M3_LABEL30;
                                 Entry halign=RIGHT _M3_VALUE30;
                                 Entry halign=LEFT _M3_LABEL31;
                                 Entry halign=RIGHT _M3_VALUE31;
                                 Entry halign=LEFT _M3_LABEL32;
                                 Entry halign=RIGHT _M3_VALUE32;
                                 Entry halign=LEFT _M3_LABEL33;
                                 Entry halign=RIGHT _M3_VALUE33;
                                 Entry halign=LEFT _M3_LABEL34;
                                 Entry halign=RIGHT _M3_VALUE34;
                                 Entry halign=LEFT _M3_LABEL35;
                                 Entry halign=RIGHT _M3_VALUE35;
                                 Entry halign=LEFT _M3_LABEL36;
                                 Entry halign=RIGHT _M3_VALUE36;
                                 Entry halign=LEFT _M3_LABEL37;
                                 Entry halign=RIGHT _M3_VALUE37;
                                 Entry halign=LEFT _M3_LABEL38;
                                 Entry halign=RIGHT _M3_VALUE38;
                                 Entry halign=LEFT _M3_LABEL39;
                                 Entry halign=RIGHT _M3_VALUE39;
                                 Entry halign=LEFT _M3_LABEL40;
                                 Entry halign=RIGHT _M3_VALUE40;
                                 Entry halign=LEFT _M3_LABEL41;
                                 Entry halign=RIGHT _M3_VALUE41;
                                 Entry halign=LEFT _M3_LABEL42;
                                 Entry halign=RIGHT _M3_VALUE42;
                                 Entry halign=LEFT _M3_LABEL43;
                                 Entry halign=RIGHT _M3_VALUE43;
                                 Entry halign=LEFT _M3_LABEL44;
                                 Entry halign=RIGHT _M3_VALUE44;
                                 Entry halign=LEFT _M3_LABEL45;
                                 Entry halign=RIGHT _M3_VALUE45;
                                 Entry halign=LEFT _M3_LABEL46;
                                 Entry halign=RIGHT _M3_VALUE46;
                                 Entry halign=LEFT _M3_LABEL47;
                                 Entry halign=RIGHT _M3_VALUE47;
                                 Entry halign=LEFT _M3_LABEL48;
                                 Entry halign=RIGHT _M3_VALUE48;
                                 Entry halign=LEFT _M3_LABEL49;
                                 Entry halign=RIGHT _M3_VALUE49;
                                 Entry halign=LEFT _M3_LABEL50;
                                 Entry halign=RIGHT _M3_VALUE50;
                              endLayout;
                           endLayout;
                        endLayout;
                     endSidebar;
                  endif;
                  if (EXISTS(_MARGIN4))
                     Sidebar / align=_MARGIN4;
                        Layout Gridded / columns=1 border=_M4_BORDER opaque=_M4_CFILL
                           backgroundcolor=_M4_BGCOLOR;
                           Layout Gridded / columns=1 border=FALSE;
                              Entry _M4_HEADER / textattrs=GRAPHLABELTEXT border=FALSE;
                           endLayout;
                           Layout Overlay / border=FALSE;
                              Layout Gridded / columns=_M4_NCOLS border=FALSE columngutter=
                                 _M4_GUTTER valign=TOP;
                                 Entry halign=LEFT _M4_LABEL1;
                                 Entry halign=RIGHT _M4_VALUE1;
                                 Entry halign=LEFT _M4_LABEL2;
                                 Entry halign=RIGHT _M4_VALUE2;
                                 Entry halign=LEFT _M4_LABEL3;
                                 Entry halign=RIGHT _M4_VALUE3;
                                 Entry halign=LEFT _M4_LABEL4;
                                 Entry halign=RIGHT _M4_VALUE4;
                                 Entry halign=LEFT _M4_LABEL5;
                                 Entry halign=RIGHT _M4_VALUE5;
                                 Entry halign=LEFT _M4_LABEL6;
                                 Entry halign=RIGHT _M4_VALUE6;
                                 Entry halign=LEFT _M4_LABEL7;
                                 Entry halign=RIGHT _M4_VALUE7;
                                 Entry halign=LEFT _M4_LABEL8;
                                 Entry halign=RIGHT _M4_VALUE8;
                                 Entry halign=LEFT _M4_LABEL9;
                                 Entry halign=RIGHT _M4_VALUE9;
                                 Entry halign=LEFT _M4_LABEL10;
                                 Entry halign=RIGHT _M4_VALUE10;
                                 Entry halign=LEFT _M4_LABEL11;
                                 Entry halign=RIGHT _M4_VALUE11;
                                 Entry halign=LEFT _M4_LABEL12;
                                 Entry halign=RIGHT _M4_VALUE12;
                                 Entry halign=LEFT _M4_LABEL13;
                                 Entry halign=RIGHT _M4_VALUE13;
                                 Entry halign=LEFT _M4_LABEL14;
                                 Entry halign=RIGHT _M4_VALUE14;
                                 Entry halign=LEFT _M4_LABEL15;
                                 Entry halign=RIGHT _M4_VALUE15;
                                 Entry halign=LEFT _M4_LABEL16;
                                 Entry halign=RIGHT _M4_VALUE16;
                                 Entry halign=LEFT _M4_LABEL17;
                                 Entry halign=RIGHT _M4_VALUE17;
                                 Entry halign=LEFT _M4_LABEL18;
                                 Entry halign=RIGHT _M4_VALUE18;
                                 Entry halign=LEFT _M4_LABEL19;
                                 Entry halign=RIGHT _M4_VALUE19;
                                 Entry halign=LEFT _M4_LABEL20;
                                 Entry halign=RIGHT _M4_VALUE20;
                                 Entry halign=LEFT _M4_LABEL21;
                                 Entry halign=RIGHT _M4_VALUE21;
                                 Entry halign=LEFT _M4_LABEL22;
                                 Entry halign=RIGHT _M4_VALUE22;
                                 Entry halign=LEFT _M4_LABEL23;
                                 Entry halign=RIGHT _M4_VALUE23;
                                 Entry halign=LEFT _M4_LABEL24;
                                 Entry halign=RIGHT _M4_VALUE24;
                                 Entry halign=LEFT _M4_LABEL25;
                                 Entry halign=RIGHT _M4_VALUE25;
                                 Entry halign=LEFT _M4_LABEL26;
                                 Entry halign=RIGHT _M4_VALUE26;
                                 Entry halign=LEFT _M4_LABEL27;
                                 Entry halign=RIGHT _M4_VALUE27;
                                 Entry halign=LEFT _M4_LABEL28;
                                 Entry halign=RIGHT _M4_VALUE28;
                                 Entry halign=LEFT _M4_LABEL29;
                                 Entry halign=RIGHT _M4_VALUE29;
                                 Entry halign=LEFT _M4_LABEL30;
                                 Entry halign=RIGHT _M4_VALUE30;
                                 Entry halign=LEFT _M4_LABEL31;
                                 Entry halign=RIGHT _M4_VALUE31;
                                 Entry halign=LEFT _M4_LABEL32;
                                 Entry halign=RIGHT _M4_VALUE32;
                                 Entry halign=LEFT _M4_LABEL33;
                                 Entry halign=RIGHT _M4_VALUE33;
                                 Entry halign=LEFT _M4_LABEL34;
                                 Entry halign=RIGHT _M4_VALUE34;
                                 Entry halign=LEFT _M4_LABEL35;
                                 Entry halign=RIGHT _M4_VALUE35;
                                 Entry halign=LEFT _M4_LABEL36;
                                 Entry halign=RIGHT _M4_VALUE36;
                                 Entry halign=LEFT _M4_LABEL37;
                                 Entry halign=RIGHT _M4_VALUE37;
                                 Entry halign=LEFT _M4_LABEL38;
                                 Entry halign=RIGHT _M4_VALUE38;
                                 Entry halign=LEFT _M4_LABEL39;
                                 Entry halign=RIGHT _M4_VALUE39;
                                 Entry halign=LEFT _M4_LABEL40;
                                 Entry halign=RIGHT _M4_VALUE40;
                                 Entry halign=LEFT _M4_LABEL41;
                                 Entry halign=RIGHT _M4_VALUE41;
                                 Entry halign=LEFT _M4_LABEL42;
                                 Entry halign=RIGHT _M4_VALUE42;
                                 Entry halign=LEFT _M4_LABEL43;
                                 Entry halign=RIGHT _M4_VALUE43;
                                 Entry halign=LEFT _M4_LABEL44;
                                 Entry halign=RIGHT _M4_VALUE44;
                                 Entry halign=LEFT _M4_LABEL45;
                                 Entry halign=RIGHT _M4_VALUE45;
                                 Entry halign=LEFT _M4_LABEL46;
                                 Entry halign=RIGHT _M4_VALUE46;
                                 Entry halign=LEFT _M4_LABEL47;
                                 Entry halign=RIGHT _M4_VALUE47;
                                 Entry halign=LEFT _M4_LABEL48;
                                 Entry halign=RIGHT _M4_VALUE48;
                                 Entry halign=LEFT _M4_LABEL49;
                                 Entry halign=RIGHT _M4_VALUE49;
                                 Entry halign=LEFT _M4_LABEL50;
                                 Entry halign=RIGHT _M4_VALUE50;
                              endLayout;
                           endLayout;
                        endLayout;
                     endSidebar;
                  endif;
                  Layout Overlay / pad=(left=_PADLEFT right=_PADRIGHT);
                     Layout Overlay / xaxisopts=(label=_VARLABEL display=_XDISPLAY linearopts=(
                        tickvaluelist=_XTICKSn viewmin=_XMINn viewmax=_XMAXn )) yaxisopts=(label=
                        _YLABEL griddisplay=_GRID display=_YDISPLAY linearopts=(thresholdmin=1
                        thresholdmax=1 tickvaluelist=_YTICKS viewmin=_YMIN viewmax=_YMAX)
                        offsetmin=0);
                        if (_NOHANG)
                           HistogramParm x=BINX y=BINCOUNT / binaxis=FALSE xvalues=_XVALUES
                              datatransparency=0.5 datalabel=BARLABEL;
                        endif;
                        if (_CFILL)
                           SeriesPlot x=CURVEX y=CURVEY / group=CURVELABEL includemissinggroup=
                              FALSE display=(fill) datatransparency=0.5;
                           BandPlot x=CURVEX limitupper=0 limitlower=_YMIN / fillattrs=
                              GRAPHWALLS;
                        endif;
                        if (_HANG)
                           VectorPlot xorigin=BINX yorigin=HANGYORIGIN x=BINX y=HANGY /
                              arrowheads=FALSE;
                        endif;
                        SeriesPlot x=CURVEX y=CURVEY / group=CURVELABEL includemissinggroup=
                           FALSE name='Curve';
                        ReferenceLine x=HREFVALUE / curvelabel=HREFLABEL curvelabellocation=
                           INSIDE curvelabelposition=_HREFLABPOS clip=TRUE;
                        ReferenceLine y=VREFVALUE / curvelabel=VREFLABEL curvelabellocation=
                           INSIDE curvelabelposition=_VREFLABPOS clip=TRUE;
                        if (_INSET1)
                           Layout Gridded / columns=1 border=_I1_BORDER halign=_I1_HALIGN valign
                              =_I1_VALIGN opaque=_I1_CFILL backgroundcolor=_I1_BGCOLOR;
                              Layout Overlay / border=FALSE;
                                 Entry _I1_HEADER / textattrs=GRAPHLABELTEXT border=FALSE;
                              endLayout;
                              Layout Gridded / columns=2 border=FALSE;
                                 Entry halign=LEFT _I1_LABEL1;
                                 Entry halign=RIGHT _I1_VALUE1;
                                 Entry halign=LEFT _I1_LABEL2;
                                 Entry halign=RIGHT _I1_VALUE2;
                                 Entry halign=LEFT _I1_LABEL3;
                                 Entry halign=RIGHT _I1_VALUE3;
                                 Entry halign=LEFT _I1_LABEL4;
                                 Entry halign=RIGHT _I1_VALUE4;
                                 Entry halign=LEFT _I1_LABEL5;
                                 Entry halign=RIGHT _I1_VALUE5;
                                 Entry halign=LEFT _I1_LABEL6;
                                 Entry halign=RIGHT _I1_VALUE6;
                                 Entry halign=LEFT _I1_LABEL7;
                                 Entry halign=RIGHT _I1_VALUE7;
                                 Entry halign=LEFT _I1_LABEL8;
                                 Entry halign=RIGHT _I1_VALUE8;
                                 Entry halign=LEFT _I1_LABEL9;
                                 Entry halign=RIGHT _I1_VALUE9;
                                 Entry halign=LEFT _I1_LABEL10;
                                 Entry halign=RIGHT _I1_VALUE10;
                                 Entry halign=LEFT _I1_LABEL11;
                                 Entry halign=RIGHT _I1_VALUE11;
                                 Entry halign=LEFT _I1_LABEL12;
                                 Entry halign=RIGHT _I1_VALUE12;
                                 Entry halign=LEFT _I1_LABEL13;
                                 Entry halign=RIGHT _I1_VALUE13;
                                 Entry halign=LEFT _I1_LABEL14;
                                 Entry halign=RIGHT _I1_VALUE14;
                                 Entry halign=LEFT _I1_LABEL15;
                                 Entry halign=RIGHT _I1_VALUE15;
                                 Entry halign=LEFT _I1_LABEL16;
                                 Entry halign=RIGHT _I1_VALUE16;
                                 Entry halign=LEFT _I1_LABEL17;
                                 Entry halign=RIGHT _I1_VALUE17;
                                 Entry halign=LEFT _I1_LABEL18;
                                 Entry halign=RIGHT _I1_VALUE18;
                                 Entry halign=LEFT _I1_LABEL19;
                                 Entry halign=RIGHT _I1_VALUE19;
                                 Entry halign=LEFT _I1_LABEL20;
                                 Entry halign=RIGHT _I1_VALUE20;
                              endLayout;
                           endLayout;
                        endif;
                        if (_INSET2)
                           Layout Gridded / columns=1 border=_I2_BORDER halign=_I2_HALIGN valign
                              =_I2_VALIGN opaque=_I2_CFILL backgroundcolor=_I2_BGCOLOR;
                              Layout Overlay / border=FALSE;
                                 Entry _I2_HEADER / textattrs=GRAPHLABELTEXT border=FALSE;
                              endLayout;
                              Layout Gridded / columns=2 border=FALSE;
                                 Entry halign=LEFT _I2_LABEL1;
                                 Entry halign=RIGHT _I2_VALUE1;
                                 Entry halign=LEFT _I2_LABEL2;
                                 Entry halign=RIGHT _I2_VALUE2;
                                 Entry halign=LEFT _I2_LABEL3;
                                 Entry halign=RIGHT _I2_VALUE3;
                                 Entry halign=LEFT _I2_LABEL4;
                                 Entry halign=RIGHT _I2_VALUE4;
                                 Entry halign=LEFT _I2_LABEL5;
                                 Entry halign=RIGHT _I2_VALUE5;
                                 Entry halign=LEFT _I2_LABEL6;
                                 Entry halign=RIGHT _I2_VALUE6;
                                 Entry halign=LEFT _I2_LABEL7;
                                 Entry halign=RIGHT _I2_VALUE7;
                                 Entry halign=LEFT _I2_LABEL8;
                                 Entry halign=RIGHT _I2_VALUE8;
                                 Entry halign=LEFT _I2_LABEL9;
                                 Entry halign=RIGHT _I2_VALUE9;
                                 Entry halign=LEFT _I2_LABEL10;
                                 Entry halign=RIGHT _I2_VALUE10;
                                 Entry halign=LEFT _I2_LABEL11;
                                 Entry halign=RIGHT _I2_VALUE11;
                                 Entry halign=LEFT _I2_LABEL12;
                                 Entry halign=RIGHT _I2_VALUE12;
                                 Entry halign=LEFT _I2_LABEL13;
                                 Entry halign=RIGHT _I2_VALUE13;
                                 Entry halign=LEFT _I2_LABEL14;
                                 Entry halign=RIGHT _I2_VALUE14;
                                 Entry halign=LEFT _I2_LABEL15;
                                 Entry halign=RIGHT _I2_VALUE15;
                                 Entry halign=LEFT _I2_LABEL16;
                                 Entry halign=RIGHT _I2_VALUE16;
                                 Entry halign=LEFT _I2_LABEL17;
                                 Entry halign=RIGHT _I2_VALUE17;
                                 Entry halign=LEFT _I2_LABEL18;
                                 Entry halign=RIGHT _I2_VALUE18;
                                 Entry halign=LEFT _I2_LABEL19;
                                 Entry halign=RIGHT _I2_VALUE19;
                                 Entry halign=LEFT _I2_LABEL20;
                                 Entry halign=RIGHT _I2_VALUE20;
                              endLayout;
                           endLayout;
                        endif;
                        if (_INSET3)
                           Layout Gridded / columns=1 border=_I3_BORDER halign=_I3_HALIGN valign
                              =_I3_VALIGN opaque=_I3_CFILL backgroundcolor=_I3_BGCOLOR;
                              Layout Overlay / border=FALSE;
                                 Entry _I3_HEADER / textattrs=GRAPHLABELTEXT border=FALSE;
                              endLayout;
                              Layout Gridded / columns=2 border=FALSE;
                                 Entry halign=LEFT _I3_LABEL1;
                                 Entry halign=RIGHT _I3_VALUE1;
                                 Entry halign=LEFT _I3_LABEL2;
                                 Entry halign=RIGHT _I3_VALUE2;
                                 Entry halign=LEFT _I3_LABEL3;
                                 Entry halign=RIGHT _I3_VALUE3;
                                 Entry halign=LEFT _I3_LABEL4;
                                 Entry halign=RIGHT _I3_VALUE4;
                                 Entry halign=LEFT _I3_LABEL5;
                                 Entry halign=RIGHT _I3_VALUE5;
                                 Entry halign=LEFT _I3_LABEL6;
                                 Entry halign=RIGHT _I3_VALUE6;
                                 Entry halign=LEFT _I3_LABEL7;
                                 Entry halign=RIGHT _I3_VALUE7;
                                 Entry halign=LEFT _I3_LABEL8;
                                 Entry halign=RIGHT _I3_VALUE8;
                                 Entry halign=LEFT _I3_LABEL9;
                                 Entry halign=RIGHT _I3_VALUE9;
                                 Entry halign=LEFT _I3_LABEL10;
                                 Entry halign=RIGHT _I3_VALUE10;
                                 Entry halign=LEFT _I3_LABEL11;
                                 Entry halign=RIGHT _I3_VALUE11;
                                 Entry halign=LEFT _I3_LABEL12;
                                 Entry halign=RIGHT _I3_VALUE12;
                                 Entry halign=LEFT _I3_LABEL13;
                                 Entry halign=RIGHT _I3_VALUE13;
                                 Entry halign=LEFT _I3_LABEL14;
                                 Entry halign=RIGHT _I3_VALUE14;
                                 Entry halign=LEFT _I3_LABEL15;
                                 Entry halign=RIGHT _I3_VALUE15;
                                 Entry halign=LEFT _I3_LABEL16;
                                 Entry halign=RIGHT _I3_VALUE16;
                                 Entry halign=LEFT _I3_LABEL17;
                                 Entry halign=RIGHT _I3_VALUE17;
                                 Entry halign=LEFT _I3_LABEL18;
                                 Entry halign=RIGHT _I3_VALUE18;
                                 Entry halign=LEFT _I3_LABEL19;
                                 Entry halign=RIGHT _I3_VALUE19;
                                 Entry halign=LEFT _I3_LABEL20;
                                 Entry halign=RIGHT _I3_VALUE20;
                              endLayout;
                           endLayout;
                        endif;
                        if (_INSET4)
                           Layout Gridded / columns=1 border=_I4_BORDER halign=_I4_HALIGN valign
                              =_I4_VALIGN opaque=_I4_CFILL backgroundcolor=_I4_BGCOLOR;
                              Layout Overlay / border=FALSE;
                                 Entry _I4_HEADER / textattrs=GRAPHLABELTEXT border=FALSE;
                              endLayout;
                              Layout Gridded / columns=2 border=FALSE;
                                 Entry halign=LEFT _I4_LABEL1;
                                 Entry halign=RIGHT _I4_VALUE1;
                                 Entry halign=LEFT _I4_LABEL2;
                                 Entry halign=RIGHT _I4_VALUE2;
                                 Entry halign=LEFT _I4_LABEL3;
                                 Entry halign=RIGHT _I4_VALUE3;
                                 Entry halign=LEFT _I4_LABEL4;
                                 Entry halign=RIGHT _I4_VALUE4;
                                 Entry halign=LEFT _I4_LABEL5;
                                 Entry halign=RIGHT _I4_VALUE5;
                                 Entry halign=LEFT _I4_LABEL6;
                                 Entry halign=RIGHT _I4_VALUE6;
                                 Entry halign=LEFT _I4_LABEL7;
                                 Entry halign=RIGHT _I4_VALUE7;
                                 Entry halign=LEFT _I4_LABEL8;
                                 Entry halign=RIGHT _I4_VALUE8;
                                 Entry halign=LEFT _I4_LABEL9;
                                 Entry halign=RIGHT _I4_VALUE9;
                                 Entry halign=LEFT _I4_LABEL10;
                                 Entry halign=RIGHT _I4_VALUE10;
                                 Entry halign=LEFT _I4_LABEL11;
                                 Entry halign=RIGHT _I4_VALUE11;
                                 Entry halign=LEFT _I4_LABEL12;
                                 Entry halign=RIGHT _I4_VALUE12;
                                 Entry halign=LEFT _I4_LABEL13;
                                 Entry halign=RIGHT _I4_VALUE13;
                                 Entry halign=LEFT _I4_LABEL14;
                                 Entry halign=RIGHT _I4_VALUE14;
                                 Entry halign=LEFT _I4_LABEL15;
                                 Entry halign=RIGHT _I4_VALUE15;
                                 Entry halign=LEFT _I4_LABEL16;
                                 Entry halign=RIGHT _I4_VALUE16;
                                 Entry halign=LEFT _I4_LABEL17;
                                 Entry halign=RIGHT _I4_VALUE17;
                                 Entry halign=LEFT _I4_LABEL18;
                                 Entry halign=RIGHT _I4_VALUE18;
                                 Entry halign=LEFT _I4_LABEL19;
                                 Entry halign=RIGHT _I4_VALUE19;
                                 Entry halign=LEFT _I4_LABEL20;
                                 Entry halign=RIGHT _I4_VALUE20;
                              endLayout;
                           endLayout;
                        endif;
                        if (NOT _MARGININSET)
                           if (_CURVELEGEND)
                              DiscreteLegend 'Curve' / title=_LEGENDTITLE;
                           endif;
                        endif;
                     EndLayout;
                  EndLayout;
               EndLayout;
            EndLayout;
            Sidebar;
               if (_CURVELEGEND)
                  DiscreteLegend 'Curve' / title=_LEGENDTITLE;
               endif;
            EndSidebar;
         EndLayout;
      else
         Layout Overlay / xaxisopts=(label=_VARLABEL display=_XDISPLAY linearopts=(tickvaluelist
            =_XTICKSn viewmin=_XMINn viewmax=_XMAXn )) yaxisopts=(label=_YLABEL griddisplay=_GRID
            display=_YDISPLAY linearopts=(thresholdmin=1 thresholdmax=1 tickvaluelist=_YTICKS
            viewmin=_YMIN viewmax=_YMAX) offsetmin=0);
            if (_NOHANG)
               HistogramParm x=BINX y=BINCOUNT / binaxis=FALSE xvalues=_XVALUES datatransparency
                  =0.5 datalabel=BARLABEL;
            endif;
            if (_CFILL)
               SeriesPlot x=CURVEX y=CURVEY / group=CURVELABEL includemissinggroup=FALSE display
                  =(fill) datatransparency=0.5;
               BandPlot x=CURVEX limitupper=0 limitlower=_YMIN / fillattrs=GRAPHWALLS;
            endif;
            if (_HANG)
               VectorPlot xorigin=BINX yorigin=HANGYORIGIN x=BINX y=HANGY / arrowheads=FALSE;
            endif;
            SeriesPlot x=CURVEX y=CURVEY / group=CURVELABEL includemissinggroup=FALSE name=
               'Curve';
            ReferenceLine x=HREFVALUE / curvelabel=HREFLABEL curvelabellocation=INSIDE
               curvelabelposition=_HREFLABPOS clip=TRUE;
            ReferenceLine y=VREFVALUE / curvelabel=VREFLABEL curvelabellocation=INSIDE
               curvelabelposition=_VREFLABPOS clip=TRUE;
            if (_INSET1)
               Layout Gridded / columns=1 border=_I1_BORDER halign=_I1_HALIGN valign=_I1_VALIGN
                  opaque=_I1_CFILL backgroundcolor=_I1_BGCOLOR;
                  Layout Overlay / border=FALSE;
                     Entry _I1_HEADER / textattrs=GRAPHLABELTEXT border=FALSE;
                  endLayout;
                  Layout Gridded / columns=2 border=FALSE;
                     Entry halign=LEFT _I1_LABEL1;
                     Entry halign=RIGHT _I1_VALUE1;
                     Entry halign=LEFT _I1_LABEL2;
                     Entry halign=RIGHT _I1_VALUE2;
                     Entry halign=LEFT _I1_LABEL3;
                     Entry halign=RIGHT _I1_VALUE3;
                     Entry halign=LEFT _I1_LABEL4;
                     Entry halign=RIGHT _I1_VALUE4;
                     Entry halign=LEFT _I1_LABEL5;
                     Entry halign=RIGHT _I1_VALUE5;
                     Entry halign=LEFT _I1_LABEL6;
                     Entry halign=RIGHT _I1_VALUE6;
                     Entry halign=LEFT _I1_LABEL7;
                     Entry halign=RIGHT _I1_VALUE7;
                     Entry halign=LEFT _I1_LABEL8;
                     Entry halign=RIGHT _I1_VALUE8;
                     Entry halign=LEFT _I1_LABEL9;
                     Entry halign=RIGHT _I1_VALUE9;
                     Entry halign=LEFT _I1_LABEL10;
                     Entry halign=RIGHT _I1_VALUE10;
                     Entry halign=LEFT _I1_LABEL11;
                     Entry halign=RIGHT _I1_VALUE11;
                     Entry halign=LEFT _I1_LABEL12;
                     Entry halign=RIGHT _I1_VALUE12;
                     Entry halign=LEFT _I1_LABEL13;
                     Entry halign=RIGHT _I1_VALUE13;
                     Entry halign=LEFT _I1_LABEL14;
                     Entry halign=RIGHT _I1_VALUE14;
                     Entry halign=LEFT _I1_LABEL15;
                     Entry halign=RIGHT _I1_VALUE15;
                     Entry halign=LEFT _I1_LABEL16;
                     Entry halign=RIGHT _I1_VALUE16;
                     Entry halign=LEFT _I1_LABEL17;
                     Entry halign=RIGHT _I1_VALUE17;
                     Entry halign=LEFT _I1_LABEL18;
                     Entry halign=RIGHT _I1_VALUE18;
                     Entry halign=LEFT _I1_LABEL19;
                     Entry halign=RIGHT _I1_VALUE19;
                     Entry halign=LEFT _I1_LABEL20;
                     Entry halign=RIGHT _I1_VALUE20;
                  endLayout;
               endLayout;
            endif;
            if (_INSET2)
               Layout Gridded / columns=1 border=_I2_BORDER halign=_I2_HALIGN valign=_I2_VALIGN
                  opaque=_I2_CFILL backgroundcolor=_I2_BGCOLOR;
                  Layout Overlay / border=FALSE;
                     Entry _I2_HEADER / textattrs=GRAPHLABELTEXT border=FALSE;
                  endLayout;
                  Layout Gridded / columns=2 border=FALSE;
                     Entry halign=LEFT _I2_LABEL1;
                     Entry halign=RIGHT _I2_VALUE1;
                     Entry halign=LEFT _I2_LABEL2;
                     Entry halign=RIGHT _I2_VALUE2;
                     Entry halign=LEFT _I2_LABEL3;
                     Entry halign=RIGHT _I2_VALUE3;
                     Entry halign=LEFT _I2_LABEL4;
                     Entry halign=RIGHT _I2_VALUE4;
                     Entry halign=LEFT _I2_LABEL5;
                     Entry halign=RIGHT _I2_VALUE5;
                     Entry halign=LEFT _I2_LABEL6;
                     Entry halign=RIGHT _I2_VALUE6;
                     Entry halign=LEFT _I2_LABEL7;
                     Entry halign=RIGHT _I2_VALUE7;
                     Entry halign=LEFT _I2_LABEL8;
                     Entry halign=RIGHT _I2_VALUE8;
                     Entry halign=LEFT _I2_LABEL9;
                     Entry halign=RIGHT _I2_VALUE9;
                     Entry halign=LEFT _I2_LABEL10;
                     Entry halign=RIGHT _I2_VALUE10;
                     Entry halign=LEFT _I2_LABEL11;
                     Entry halign=RIGHT _I2_VALUE11;
                     Entry halign=LEFT _I2_LABEL12;
                     Entry halign=RIGHT _I2_VALUE12;
                     Entry halign=LEFT _I2_LABEL13;
                     Entry halign=RIGHT _I2_VALUE13;
                     Entry halign=LEFT _I2_LABEL14;
                     Entry halign=RIGHT _I2_VALUE14;
                     Entry halign=LEFT _I2_LABEL15;
                     Entry halign=RIGHT _I2_VALUE15;
                     Entry halign=LEFT _I2_LABEL16;
                     Entry halign=RIGHT _I2_VALUE16;
                     Entry halign=LEFT _I2_LABEL17;
                     Entry halign=RIGHT _I2_VALUE17;
                     Entry halign=LEFT _I2_LABEL18;
                     Entry halign=RIGHT _I2_VALUE18;
                     Entry halign=LEFT _I2_LABEL19;
                     Entry halign=RIGHT _I2_VALUE19;
                     Entry halign=LEFT _I2_LABEL20;
                     Entry halign=RIGHT _I2_VALUE20;
                  endLayout;
               endLayout;
            endif;
            if (_INSET3)
               Layout Gridded / columns=1 border=_I3_BORDER halign=_I3_HALIGN valign=_I3_VALIGN
                  opaque=_I3_CFILL backgroundcolor=_I3_BGCOLOR;
                  Layout Overlay / border=FALSE;
                     Entry _I3_HEADER / textattrs=GRAPHLABELTEXT border=FALSE;
                  endLayout;
                  Layout Gridded / columns=2 border=FALSE;
                     Entry halign=LEFT _I3_LABEL1;
                     Entry halign=RIGHT _I3_VALUE1;
                     Entry halign=LEFT _I3_LABEL2;
                     Entry halign=RIGHT _I3_VALUE2;
                     Entry halign=LEFT _I3_LABEL3;
                     Entry halign=RIGHT _I3_VALUE3;
                     Entry halign=LEFT _I3_LABEL4;
                     Entry halign=RIGHT _I3_VALUE4;
                     Entry halign=LEFT _I3_LABEL5;
                     Entry halign=RIGHT _I3_VALUE5;
                     Entry halign=LEFT _I3_LABEL6;
                     Entry halign=RIGHT _I3_VALUE6;
                     Entry halign=LEFT _I3_LABEL7;
                     Entry halign=RIGHT _I3_VALUE7;
                     Entry halign=LEFT _I3_LABEL8;
                     Entry halign=RIGHT _I3_VALUE8;
                     Entry halign=LEFT _I3_LABEL9;
                     Entry halign=RIGHT _I3_VALUE9;
                     Entry halign=LEFT _I3_LABEL10;
                     Entry halign=RIGHT _I3_VALUE10;
                     Entry halign=LEFT _I3_LABEL11;
                     Entry halign=RIGHT _I3_VALUE11;
                     Entry halign=LEFT _I3_LABEL12;
                     Entry halign=RIGHT _I3_VALUE12;
                     Entry halign=LEFT _I3_LABEL13;
                     Entry halign=RIGHT _I3_VALUE13;
                     Entry halign=LEFT _I3_LABEL14;
                     Entry halign=RIGHT _I3_VALUE14;
                     Entry halign=LEFT _I3_LABEL15;
                     Entry halign=RIGHT _I3_VALUE15;
                     Entry halign=LEFT _I3_LABEL16;
                     Entry halign=RIGHT _I3_VALUE16;
                     Entry halign=LEFT _I3_LABEL17;
                     Entry halign=RIGHT _I3_VALUE17;
                     Entry halign=LEFT _I3_LABEL18;
                     Entry halign=RIGHT _I3_VALUE18;
                     Entry halign=LEFT _I3_LABEL19;
                     Entry halign=RIGHT _I3_VALUE19;
                     Entry halign=LEFT _I3_LABEL20;
                     Entry halign=RIGHT _I3_VALUE20;
                  endLayout;
               endLayout;
            endif;
            if (_INSET4)
               Layout Gridded / columns=1 border=_I4_BORDER halign=_I4_HALIGN valign=_I4_VALIGN
                  opaque=_I4_CFILL backgroundcolor=_I4_BGCOLOR;
                  Layout Overlay / border=FALSE;
                     Entry _I4_HEADER / textattrs=GRAPHLABELTEXT border=FALSE;
                  endLayout;
                  Layout Gridded / columns=2 border=FALSE;
                     Entry halign=LEFT _I4_LABEL1;
                     Entry halign=RIGHT _I4_VALUE1;
                     Entry halign=LEFT _I4_LABEL2;
                     Entry halign=RIGHT _I4_VALUE2;
                     Entry halign=LEFT _I4_LABEL3;
                     Entry halign=RIGHT _I4_VALUE3;
                     Entry halign=LEFT _I4_LABEL4;
                     Entry halign=RIGHT _I4_VALUE4;
                     Entry halign=LEFT _I4_LABEL5;
                     Entry halign=RIGHT _I4_VALUE5;
                     Entry halign=LEFT _I4_LABEL6;
                     Entry halign=RIGHT _I4_VALUE6;
                     Entry halign=LEFT _I4_LABEL7;
                     Entry halign=RIGHT _I4_VALUE7;
                     Entry halign=LEFT _I4_LABEL8;
                     Entry halign=RIGHT _I4_VALUE8;
                     Entry halign=LEFT _I4_LABEL9;
                     Entry halign=RIGHT _I4_VALUE9;
                     Entry halign=LEFT _I4_LABEL10;
                     Entry halign=RIGHT _I4_VALUE10;
                     Entry halign=LEFT _I4_LABEL11;
                     Entry halign=RIGHT _I4_VALUE11;
                     Entry halign=LEFT _I4_LABEL12;
                     Entry halign=RIGHT _I4_VALUE12;
                     Entry halign=LEFT _I4_LABEL13;
                     Entry halign=RIGHT _I4_VALUE13;
                     Entry halign=LEFT _I4_LABEL14;
                     Entry halign=RIGHT _I4_VALUE14;
                     Entry halign=LEFT _I4_LABEL15;
                     Entry halign=RIGHT _I4_VALUE15;
                     Entry halign=LEFT _I4_LABEL16;
                     Entry halign=RIGHT _I4_VALUE16;
                     Entry halign=LEFT _I4_LABEL17;
                     Entry halign=RIGHT _I4_VALUE17;
                     Entry halign=LEFT _I4_LABEL18;
                     Entry halign=RIGHT _I4_VALUE18;
                     Entry halign=LEFT _I4_LABEL19;
                     Entry halign=RIGHT _I4_VALUE19;
                     Entry halign=LEFT _I4_LABEL20;
                     Entry halign=RIGHT _I4_VALUE20;
                  endLayout;
               endLayout;
            endif;
            if (NOT _MARGININSET)
               if (_CURVELEGEND)
                  DiscreteLegend 'Curve' / title=_LEGENDTITLE;
               endif;
            endif;
         EndLayout;
      endif;
      if (EXISTS(_GRAPH_FOOTNOTE1))
         EntryFootnote _GRAPH_FOOTNOTE1;
      endif;
      if (EXISTS(_GRAPH_FOOTNOTE2))
         EntryFootnote _GRAPH_FOOTNOTE2;
      endif;
      if (_BYTITLE_)
         entrytitle _BYLINE_ / textattrs=GRAPHVALUETEXT;
      else
         if (_BYFOOTNOTE_)
            entryfootnote halign=left _BYLINE_;
         endif;
      endif;
   EndGraph;
end;
run;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 8 replies
  • 13740 views
  • 4 likes
  • 4 in conversation