<?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 template in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-template/m-p/708534#M34302</link>
    <description>&lt;P&gt;debugging positions of specific values locations on a graph with out the actual data set is next to impossible.&lt;/P&gt;
&lt;P&gt;It is even harder when you don't even mention what the name of the variable is. Since you have &lt;STRONG&gt;3&lt;/STRONG&gt; x and 3 y variables then it is a total guess as to even which lines of code to examine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't even tell if your X variables are numeric or not. Since character values are not typically going to have a native "space" between values this gets pretty important at well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the &amp;lt;&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2020 08:58:05 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-12-29T08:58:05Z</dc:date>
    <item>
      <title>proc template</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-template/m-p/708478#M34297</link>
      <description>&lt;P&gt;Hello,&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sgplot.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53064i3B52917E0AAC886D/image-size/large?v=v2&amp;amp;px=999" role="button" title="sgplot.PNG" alt="sgplot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my graph, I am trying to align my "GCSF use" symbol correctly on its associate cycles.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example first triangle for "GCSF use" suppose to be on tickvalue of "Cycle 03 Day1" . second one should be on "Cycle 6 Day 1" , Third one should be in between "Cycle 6 Day 1" and "Cycle 7 Day 1"&amp;nbsp; and last one should be on "Cycle 8 Day 15".&lt;/P&gt;&lt;P&gt;I tried changing offsetmin and offsetmax for X2axispots but no luck. Can anyone help me to resolve this issue.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc Template;
	define statgraph Product1;
		mvar PLAT AMRLINES BMBPA LPIMID subjid;
       dynamic var;
		BeginGraph /designwidth=800 designheight=400px;
		entrytitle " ANC graph for subjid=" var;
			layout lattice / rows=1 columns=1 columnDataRange=unionall;
				layout overlay /

					yaxisopts=(griddisplay=off label="Absolute Neutrophil Count (10^9/L)" ) 
					xaxisopts=(griddisplay=off display=(ticks tickvalues label) label='VISIT' offsetmin=.05 offsetmax=.05 
					linearopts=(viewmin=0 viewmax=81 ))
					x2axisopts=(griddisplay=off display= none  offsetmin=.05 offsetmax=.05 
					linearopts=(viewmin=0 viewmax=81 ));
					seriesplot y=aval x=avisit / DATALABEL=chg lineattrs=(thickness=2.5 color=black  PATTERN=1) name="STEP";
					
					scatterplot y=aval x=avisit /  markerattrs=(size=8 color=CXFF8C00 symbol=circlefilled transparency = .05) name='b' legendlabel='ANC Value';
					scatterplot y=aval2 x=avisit_1 / markerattrs=(size=8 color=CXFF1493 symbol=trianglefilled transparency = .05) legendlabel='GCSF Use' datalabel=name name='a' xaxis=x2;
					scatterplot y=aval3 x=visit / DATALABEL=exdose  markerattrs=(size=8 color=green symbol=squarefilled transparency = .05) legendlabel='Dose Reduction' datalabel=name name='c' ;
discretelegend 'a' 'c' 'b'/ location=outside halign=right across=1;
					layout gridded / opaque=true backgroundcolor=CXECECEC border=false rows=4 columns=2 border=false autoalign=(topright topleft bottomright bottomleft);

						/*- Line 1-2 -*/
						entry halign=left "Baseline Platelet count";
						entry halign=left PLAT;
						entry halign=left "Number Prior lines";
						entry halign=left AMRLINES;

						/*- Line 3-4 -*/
						entry halign=left " % Plasma cell";
						entry halign=left BMBPA;
						entry halign=left "Last Regimen ImiDs";
						entry halign=right LPIMID;
					endlayout;
				endlayout;
			endlayout;
		EndGraph;
	end;
run;


options orientation=landscape nodate nonumber;
ods graphics on / 
      width     = 27.0cm
      height    = 14.3cm
      imagefmt  = png
      imagemap  = on
      border    = off;
ods listing close;                                                                                                                      
ods pdf 

        file    = "path./&amp;amp;prgm..pdf"  ;
/*        nogtitle  */
/*        nobodytitle */
/*        style   = pdfstyleSF;*/
proc sgrender data=final  template=Product1;
run;
ods pdf close;
ods listing;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Unnati&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 21:18:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-template/m-p/708478#M34297</guid>
      <dc:creator>unnati</dc:creator>
      <dc:date>2020-12-28T21:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc template</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-template/m-p/708534#M34302</link>
      <description>&lt;P&gt;debugging positions of specific values locations on a graph with out the actual data set is next to impossible.&lt;/P&gt;
&lt;P&gt;It is even harder when you don't even mention what the name of the variable is. Since you have &lt;STRONG&gt;3&lt;/STRONG&gt; x and 3 y variables then it is a total guess as to even which lines of code to examine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't even tell if your X variables are numeric or not. Since character values are not typically going to have a native "space" between values this gets pretty important at well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the &amp;lt;&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 08:58:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-template/m-p/708534#M34302</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-29T08:58:05Z</dc:date>
    </item>
  </channel>
</rss>

