<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826554#M23052</link>
    <description>&lt;P&gt;It seems you really have a one-cell graph.&amp;nbsp; It may be much easier to use the SGPLOT procedure with the XAXISTABLE statement to create your graph.&amp;nbsp; The XAXISTABLE statement allows you to place the table above or below the x-axis.&amp;nbsp; &amp;nbsp;LOCATION=Outside is the default.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If GTL is a must, you can run SGPLOT as in the example with a TMPLOUT= option to obtain the GTL necessary to create the graph.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this as a general example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/02/19/survival-plot-twist-using-sgplot-procedure/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2018/02/19/survival-plot-twist-using-sgplot-procedure/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 06:17:49 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2022-08-02T06:17:49Z</dc:date>
    <item>
      <title>PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to graph.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826534#M23047</link>
      <description>&lt;P&gt;I am trying to create a graph using the PROC TEMPLATE. I am using this code since most of the code written previously. But I am trying to control the colors of the data. I have two different GROUPS, I was able to control markers, patterns but not the color It giving in blue and red. because of default&amp;nbsp;ATTRPRIORITY=COLOR&amp;nbsp; rotation pattern .I read the SAS®9.4 Graph Template Language User’s Guide "&lt;A href="https://citeseerx.ist.psu.edu/viewdoc/download" target="_blank"&gt;https://citeseerx.ist.psu.edu/viewdoc/download&lt;/A&gt; doi=10.1.1.354.127&amp;amp;rep=rep1&amp;amp;type=pdf#page=80&amp;amp;zoom=100,0,161"&lt;/P&gt;
&lt;P&gt;But I really could not find&amp;nbsp; how I can achieve my requirement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods path(prepend) work.templat(update);

proc template;
	define statgraph series;
	begingraph / BORDER=False /*datacolors=(green blue)*/ datasymbols=( circle Asterisk ) datalinepatterns= (1 4);

	      layout overlay / xaxisopts=( label=('X axis label') tickvalueattrs=(family='Courier New' size=8 weight=bold) labelattrs=(family='Courier New' size=8 weight=bold)
										linearopts=(   viewmin=-5.0 viewmax=20.0 TICKVALUELIST=(0 1 4 8 10 12 14 16) TICKVALUEFITPOLICY=ROTATE ))/*tickvaluesequence=( start=0.0 end=60.0 )*/
							yaxisopts=( label=('Yaxis label') labelattrs=(family='Courier New' size=8  weight=bold) tickvalueattrs=(family='Courier New' size=8 )
										linearopts=(  viewmin=-15.0 viewmax=5.0  tickvaluesequence=( start=-15.0 end=6.0 increment=5.0)));
	         seriesplot x=avisitn y=Estimate /   group=grp name='series' display=(markers) 
				connectorder=xaxis;
	         scatterplot x=avisitn y=Estimate /  yerrorupper = upper yerrorlower = lower group=grp 
			name='scatter' ;*markerattrs=(symbol= asterisk);
	         discretelegend 'series' / title='Treatment' opaque=false border=true halign=left valign=bottom 
		displayclipped=true across=1 order=rowmajor location=inside 
		titleattrs=(family='Courier New' size=8  color= red);

			Layout Gridded/
			rows=3 order=columnmajor border=false autoalign=(bottomright);
			entry textattrs=(size=8pt) halign=left
			"*xxxx";
			entry textattrs=(size=8pt) halign=left
			"xxx";
			entry textattrs=(size=8pt) halign=left
			"***&amp;nbsp;xxx";

		    endlayout;

	 endlayout;
	endgraph;
	end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1659391465066.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73989iBB8DA6713F6CE3FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1659391465066.png" alt="SASuserlot_0-1659391465066.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am also looking to add the data at the bottom of the x axis&amp;nbsp; that represent the Y axis values .&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_1-1659391727579.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73990i34F6CD933D3C8244/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_1-1659391727579.png" alt="SASuserlot_1-1659391727579.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I was able to control colors and adding the data with PROC SGPLOT. Thank you for your time and inputs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 22:23:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826534#M23047</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-08-01T22:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826537#M23048</link>
      <description>&lt;P&gt;Without data and the Sgrender statements it is next to impossible to test GTL code. With options that interact with ODS STYLE setttings, such as Attrpriority the style used becomes important also.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try adding ATTRPRIORITY=NONE to the BeginGraph statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The basic tool for providing a table near the axis as requested is, believe it or not, an AXISTABLE statement.&lt;/P&gt;
&lt;P&gt;Which would have the basic form similar to this.&lt;/P&gt;
&lt;P&gt;AXISTABLE x=&amp;lt;x axis variable name&amp;gt;&amp;nbsp;&amp;nbsp; value=&amp;lt;y axis variable name&amp;gt; ;&lt;/P&gt;
&lt;P&gt;Again, without data, I am not sure if you need other options on the Axistable.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 23:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826537#M23048</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-08-01T23:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826542#M23049</link>
      <description>&lt;P&gt;My apologies.&amp;nbsp; I tried the&amp;nbsp;ATTRPRIORITY=NONE option at bigingraph and ods graphic statement&amp;nbsp; but it didn't worked for me. I am attaching the data.( Ref:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/files/2012/07/AnnoRisk_SAS93_Code1.txt" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/graphicallyspeaking/files/2012/07/AnnoRisk_SAS93_Code1.txt&lt;/A&gt;&amp;nbsp;) My second question in the previous version is&amp;nbsp; add the 'N" variable values at the bottom of the table. Is creating the Annotation dataset is the option?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1659397574923.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73993iE9EA43ECCCFDB3F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1659397574923.png" alt="SASuserlot_0-1659397574923.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html close;
%let gpath='C:\';
%let dpi=200;
ods listing style=htmlblue image_dpi=&amp;amp;dpi gpath=&amp;amp;gpath; 

data have;
  input Week Drug $ estimate lower upper N;
  if week ne 28 then estimate2=estimate;
  if week eq 2 then do; ylabel='C'; label='Number of subjects at visit'; end;
  datalines;
0  A  0     0    0    216   
0  B  0     0    0    431
1  A -0.1  -2.0  1.8  210   
1  B  0.5  -1.0  2.1  423 
2  A -0.6  -2.8  1.8  206
2  B -3.2  -4.8 -1.6  364
4  A  0.4  -1.9  2.4  199
4  B -1.8  -3.6  0.0  362
8  A -1.6  -4.0  0.8  191
8  B -2.8  -4.4 -1.2  337
12 A -3.0  -5.6 -0.4  184
12 B -2.0  -3.6 -0.4  315
16 A -1.2  -3.6  1.2  176
16 B -3.0  -5.0 -1.0  311
20 A -1.6  -4.6  1.4  169
20 B -3.2  -4.8 -1.6  299
24 A -2.2  -5.0  0.6  164  
24 B -2.0  -3.8 -0.2  293
28 A -1.6  -3.6  1.0  214
28 B -1.8  -3.2 -0.4  429
;
run;


ods path(prepend) work.templat(update);

proc template;
	define statgraph series;
	begingraph / BORDER=False 
					ATTRPRIORITY=NONE datasymbols=( circle Asterisk ) datalinepatterns= (1 4);* datacolors=(green blue) ;

	      layout overlay / xaxisopts=( label=('X axis label') tickvalueattrs=(family='Courier New' size=8 weight=bold) labelattrs=(family='Courier New' size=8 weight=bold)
										linearopts=(   viewmin=-5.0 viewmax=24.0 TICKVALUELIST=(0 1 2 4 8 10 12  16 20 24) TICKVALUEFITPOLICY=ROTATE ))/*tickvaluesequence=( start=0.0 end=60.0 )*/
							yaxisopts=( label=('Yaxis label') labelattrs=(family='Courier New' size=8  weight=bold) tickvalueattrs=(family='Courier New' size=8 )
										linearopts=(  viewmin=-15.0 viewmax=5.0  tickvaluesequence=( start=-15.0 end=6.0 increment=5.0)));
	         seriesplot x=week y=Estimate /   group=drug name='series' display=(markers) 
				connectorder=xaxis;
	         scatterplot x=week y=Estimate /  yerrorupper = upper yerrorlower = lower group=drug 
			name='scatter' ;*markerattrs=(symbol= asterisk);
	         discretelegend 'series' / title='Treatment' opaque=false border=true halign=left valign=bottom 
		displayclipped=true across=1 order=rowmajor location=inside 
		titleattrs=(family='Courier New' size=8  color= red);


	 endlayout;
	endgraph;
	end;
run;
ods html;
ods graphics on/ width=9 in height=4.4 in  ;

proc sgrender data=have template=series;
*format avisitn wkfmt.;
run;
ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Aug 2022 23:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826542#M23049</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-08-01T23:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826548#M23050</link>
      <description>&lt;P&gt;To control line and marker colors, you need to use the DATACONTRASTCOLORS option instead of the DATACOLORS option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;said, you will want to use an AXISTABLE to display that data. However, if you want that data displayed BELOW the axis, you'll need to wrap your plot in a LAYOUT LATTICE. The general structure will look something like the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;begingraph;
layout lattice / columnweights=preferred rowweights=preferred columndatarange=union columns=1 columnweights=preferred rowweights=preferred;
   layout overlay;
      &amp;lt;your plot&amp;gt;
   endlayout;
   Layout Overlay /  walldisplay=none xaxisopts=(display=none);
      AxisTable VALUE=&amp;lt;tablevar1&amp;gt; X=&amp;lt;xvar&amp;gt; / labelPosition=min Display=(Label);
   endlayout;
   Layout Overlay /  walldisplay=none xaxisopts=(display=none);
      AxisTable VALUE=&amp;lt;tablevar2&amp;gt; X=&amp;lt;xvar&amp;gt; / labelPosition=min Display=(Label);
   endlayout;
endlayout;
endgraph;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 01:20:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826548#M23050</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-08-02T01:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826549#M23051</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;, The color control worked. I am still having the trouble to get the data info outside the axis. thanks again for your time. If you get a chance can you please any resources that I can look into to achieved the data under x axis.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1659445504549.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74003i71116F7BB45E2A74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1659445504549.png" alt="SASuserlot_0-1659445504549.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 13:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826549#M23051</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-08-02T13:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826554#M23052</link>
      <description>&lt;P&gt;It seems you really have a one-cell graph.&amp;nbsp; It may be much easier to use the SGPLOT procedure with the XAXISTABLE statement to create your graph.&amp;nbsp; The XAXISTABLE statement allows you to place the table above or below the x-axis.&amp;nbsp; &amp;nbsp;LOCATION=Outside is the default.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If GTL is a must, you can run SGPLOT as in the example with a TMPLOUT= option to obtain the GTL necessary to create the graph.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this as a general example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/02/19/survival-plot-twist-using-sgplot-procedure/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2018/02/19/survival-plot-twist-using-sgplot-procedure/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 06:17:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826554#M23052</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2022-08-02T06:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826616#M23053</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;&amp;nbsp; for your valuable suggestion.&amp;nbsp; The reason for me to use 'GTL' because most of the code existed and have the certain nuisances written in the code for a decent output. Only there is a need of placing the data under the X axis. Yes I do tried the SGPLOT ( of course , I used some of your work from the Book , SAS publications and Some from suggestions from here.) If I could not achieve this With 'GTL' I will movie to SGPLOT. I kept that as last option to save the time. Thank you for your input.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 13:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826616#M23053</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-08-02T13:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826676#M23056</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/350312"&gt;@SASuserlot&lt;/a&gt;&amp;nbsp;, What do you see when you try the structure I gave you? Can you post your template?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 16:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826676#M23056</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-08-02T16:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826697#M23058</link>
      <description>&lt;P&gt;Yes. Like you mentioned it was displaying data inside the graph. I came across this solution which works for me for time being. But I definitely work more on this to use the latest updated procedures. I used boxplot statement by having&amp;nbsp; two rows in Lattice lay out. I am not sure this is efficient way to achieve.&amp;nbsp; I am providing my code. Please provide your inputs.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1659466984976.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74024iD80B06F365A87F42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1659466984976.png" alt="SASuserlot_0-1659466984976.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html close;
%let gpath='C:\';
%let dpi=200;
ods listing style=htmlblue image_dpi=&amp;amp;dpi gpath=&amp;amp;gpath; 

data have;
  input Week Drug $ estimate lower upper N;
  if week ne 28 then estimate2=estimate;
  if week eq 2 then do; ylabel='C'; label='Number of subjects at visit'; end;
  datalines;
0  A  0     0    0    216   
0  B  0     0    0    431
1  A -0.1  -2.0  1.8  210   
1  B  0.5  -1.0  2.1  423 
2  A -0.6  -2.8  1.8  206
2  B -3.2  -4.8 -1.6  364
4  A  0.4  -1.9  2.4  199
4  B -1.8  -3.6  0.0  362
8  A -1.6  -4.0  0.8  191
8  B -2.8  -4.4 -1.2  337
12 A -3.0  -5.6 -0.4  184
12 B -2.0  -3.6 -0.4  315
16 A -1.2  -3.6  1.2  176
16 B -3.0  -5.0 -1.0  311
20 A -1.6  -4.6  1.4  169
20 B -3.2  -4.8 -1.6  299
24 A -2.2  -5.0  0.6  164  
24 B -2.0  -3.8 -0.2  293
28 A -1.6  -3.6  1.0  214
28 B -1.8  -3.2 -0.4  429
;
run;


ods path(prepend) work.templat(update);

proc template;
	define statgraph series;
	begingraph / BORDER=False 
					ATTRPRIORITY=NONE datacontrastcolors=(orange purple) datasymbols=( circle Asterisk ) datalinepatterns= (1 4);* datacolors=(green blue) ;
layout lattice / rows = 2  rowgutter=10 columngutter=10 rowWEIGHTS = (0.90 0.1);
	cell;
	cellheader;
	endcellheader;

	      layout overlay / xaxisopts=( label=('X axis label') tickvalueattrs=(family='Courier New' size=8 weight=bold) labelattrs=(family='Courier New' size=8 weight=bold)
										linearopts=(   viewmin=0.0 viewmax=28.0 TICKVALUELIST=(0 1 2 4 8 10 12  16 20 24 28) TICKVALUEFITPOLICY=ROTATE ))/*tickvaluesequence=( start=0.0 end=60.0 )*/
							yaxisopts=( label=('Yaxis label') labelattrs=(family='Courier New' size=8  weight=bold) tickvalueattrs=(family='Courier New' size=8 )
										linearopts=(  viewmin=-15.0 viewmax=5.0  tickvaluesequence=( start=-15.0 end=6.0 increment=5.0)));
	         seriesplot x=week y=Estimate /   group=drug name='series' display=(markers) 
				connectorder=xaxis;
	         scatterplot x=week y=Estimate /  yerrorupper = upper yerrorlower = lower group=drug 
			name='scatter' ;*markerattrs=(symbol= asterisk);
	         discretelegend 'series' / title='Treatment' opaque=false border=true halign=left valign=bottom 
		displayclipped=true across=1 order=rowmajor location=inside 
		titleattrs=(family='Courier New' size=8  color= red);
/*		Layout Overlay /  walldisplay=none xaxisopts=(display=none);*/
/*		      xAxisTable VALUE=N X=week/  class=drug labelPosition=min Display=(Label);*/
/*		   endlayout;*/


	 endlayout;
	 endcell;

	cell;
	cellheader;
	endcellheader;
/*innermargin;*/
 ** tattisk is the time variable where n at risk will be presented;
 ** atrisk is variable with number of patients at risk;
 blockplot x = week block = n / class =drug
 			display=(values label) REPEATEDVALUES = true
					EXTENDBLOCKONMISSING= true valuehalign = start
					valueattrs=(size =7.5) labelattrs=(size = 7.5);
/**
axistable x = &amp;amp;tatrisk value = &amp;amp;natrisk / class = &amp;amp;group display=(label)
 colorgroup = &amp;amp;group valueattrs=(size=8) labelattrs=(size=8);
/**/
/* endinnermargin; */
endcell;
	endlayout;

	endgraph;
	end;
run;
ods html;
ods graphics on/ width=9 in height=4.4 in  ;

proc sgrender data=have template=series;
*format avisitn wkfmt.;
run;
ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2022 19:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826697#M23058</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-08-02T19:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826708#M23061</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph series;
begingraph / BORDER=False ATTRPRIORITY=NONE datacontrastcolors=(orange purple) datasymbols=( circle Asterisk ) datalinepatterns= (1 4);* datacolors=(green blue) ;
layout lattice / rows = 2  rowgutter=10 columngutter=10 rowWEIGHTS = preferred;
    layout overlay / xaxisopts=( label=('X axis label') tickvalueattrs=(family='Courier New' size=8 weight=bold)       labelattrs=(family='Courier New' size=8 weight=bold) linearopts=(   viewmin=0.0 viewmax=28.0 TICKVALUELIST=(0 1 2 4 8 10 12  16 20 24 28) TICKVALUEFITPOLICY=ROTATE )) yaxisopts=( label=('Yaxis label') labelattrs=(family='Courier New' size=8  weight=bold) tickvalueattrs=(family='Courier New' size=8 ) linearopts=(  viewmin=-15.0 viewmax=5.0  tickvaluesequence=( start=-15.0 end=6.0 increment=5.0)));
            seriesplot x=week y=Estimate /   group=drug name='series' display=(markers) connectorder=xaxis;
            scatterplot x=week y=Estimate /  yerrorupper = upper yerrorlower = lower group=drug name='scatter' ;
            discretelegend 'series' / title='Treatment' opaque=false border=true halign=left valign=bottom displayclipped=true across=1 order=rowmajor location=inside titleattrs=(family='Courier New' size=8  color= red);
     endlayout;
     Layout Overlay /  walldisplay=none xaxisopts=(display=none);		      
        AxisTable VALUE=N X=week/  class=drug labelPosition=min Display=(Label);
     endlayout;
endlayout;
endgraph;
end;
run;
ods html;
ods graphics on/ width=9 in height=4.4 in  ;

proc sgrender data=have template=series;
*format avisitn wkfmt.;
run;
ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Aug 2022 00:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826708#M23061</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-08-03T00:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826744#M23062</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;. It worked. I have last question.&lt;/P&gt;
&lt;P&gt;1. In the log I see the following warning, It 's not effecting any thing in the graph. So I can just ignore it?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1659478044310.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74032iB766D3D765A0D60F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1659478044310.png" alt="SASuserlot_0-1659478044310.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 22:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826744#M23062</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-08-02T22:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826748#M23063</link>
      <description>&lt;P&gt;Sorry, I didn't see that earlier. Just get rid of the "x", and the message will go away.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 22:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826748#M23063</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-08-02T22:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GTL: How to circumvent the ATTRPRIORITY=COLOR option to control colors and add data to grap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826753#M23064</link>
      <description>&lt;P&gt;No problem. Thank you for your time. I really appreciate it.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 22:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GTL-How-to-circumvent-the-ATTRPRIORITY-COLOR-option-to/m-p/826753#M23064</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-08-02T22:55:37Z</dc:date>
    </item>
  </channel>
</rss>

