<?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- Tick value sequence in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/527922#M22196</link>
    <description>&lt;P&gt;Hi nsamanta,&lt;/P&gt;&lt;P&gt;This is a very nice code. One interesting thing I found out is that a tick value list does no have to be numeric. That could eliminate the format step:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/65377/HTML/default/viewer.htm#p1iii02qgue4etn1l7fgxzr388sb.htm#n0vulgt0gp4wypn10an7nyz1flq8" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatgraph/65377/HTML/default/viewer.htm#p1iii02qgue4etn1l7fgxzr388sb.htm#n0vulgt0gp4wypn10an7nyz1flq8&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jan 2019 04:38:01 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2019-01-17T04:38:01Z</dc:date>
    <item>
      <title>Proc Template- Tick value sequence</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/527505#M22191</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PP_Cytof.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26291i90299EFBF1483218/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PP_Cytof.png" alt="PP_Cytof.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish to switch the sequence of my tick values on my x-axis. For some reason the logic in my code has shifted the labels for each box plot. for e,g, 'No-Diabetes' is actually equal to 'T1DM' is actually 'T2DM'. However, the data is represented okay. Below is my complicated code-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data cytofpercent_scatter ;&lt;BR /&gt;set cytofpercent ;&lt;BR /&gt;Diagnosis_n = ifn(Diagnosis = 'T1DM', 1, ifn(Diagnosis = 'T2DM', 2, 3));&lt;BR /&gt;if Diagnosis="T1DM" then T1DM=-1+0.1*rannor(0);&lt;BR /&gt;if Diagnosis="T2DM" then T2DM=1.5+0.1*rannor(0);&lt;BR /&gt;if Diagnosis="No-Diabetes" then NoDiabetes=4+0.1*rannor(0);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value Diagnosis&lt;BR /&gt;1 = 'T1DM'&lt;BR /&gt;2 = 'T2DM'&lt;BR /&gt;3 = 'No-Diabetes'&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=cytofpercent ;&lt;BR /&gt;by Donor;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph cytof.scatter;&lt;BR /&gt;begingraph;&lt;BR /&gt;entryTitle "PP CELL DISTRIBUTION";&lt;BR /&gt;layout overlay / x2axisopts=(display=none)&lt;BR /&gt;&lt;BR /&gt;xaxisopts=(display=(tickvalues) linearopts=(tickValuelist=(2 1 3) tickvalueformat=Diagnosis.))&amp;nbsp;&lt;BR /&gt;yaxisopts= (label= "PP Cell Percentage (%)" labelattrs=(weight=bold))&lt;BR /&gt;walldisplay=none ;&lt;BR /&gt;boxplot x=Diagnosis y=PP_cells_percentage / display=(caps mean median)&lt;BR /&gt;fillattrs=(color=white)&lt;BR /&gt;meanattrs=(color=Black symbol=diamondFilled) ;&lt;/P&gt;&lt;P&gt;scatterplot x=T1DM y=PP_cells_percentage / xaxis=x2 markerattrs=(color=blue symbol=circleFilled) ;&lt;BR /&gt;scatterplot x=T2DM y=PP_cells_percentage / xaxis=x2 markerattrs=(color=red symbol=circleFilled);&lt;BR /&gt;scatterplot x=NoDiabetes y=PP_cells_percentage / xaxis=x2 markerattrs=(color=green symbol=circleFilled);&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods listing style=listing;&lt;BR /&gt;proc sgrender data=cytofpercent_scatter&lt;BR /&gt;template="cytof.scatter";&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 20:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/527505#M22191</guid>
      <dc:creator>nsamanta</dc:creator>
      <dc:date>2019-01-15T20:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template- Tick value sequence</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/527808#M22194</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;If T2DM and T1DM are switched, it could be because of the &lt;EM&gt;tickValuelist=&lt;/EM&gt; option:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;*** the order of tick value list is &lt;FONT color="#000000"&gt;T2DM&lt;/FONT&gt; (&lt;FONT color="#800080"&gt;2&lt;/FONT&gt;), &lt;FONT color="#000000"&gt;T1DM&lt;/FONT&gt; (&lt;FONT color="#800080"&gt;1&lt;/FONT&gt;), &lt;FONT color="#000000"&gt;No-Diabetes&lt;/FONT&gt; (&lt;FONT color="#800080"&gt;3&lt;/FONT&gt;);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;xaxisopts=(display=(tickvalues) linearopts=(&lt;EM&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#000000"&gt;tickValuelist&lt;/FONT&gt;=&lt;/FONT&gt;&lt;/EM&gt;(&lt;FONT color="#800080"&gt;&lt;STRONG&gt;2 1 3&lt;/STRONG&gt;&lt;/FONT&gt;) tickvalueformat=&lt;STRONG&gt;Diagnosis.&lt;/STRONG&gt;))&amp;nbsp;&lt;BR /&gt;yaxisopts= (label= "PP Cell Percentage (%)" labelattrs=(weight=bold))&lt;BR /&gt;walldisplay=none ;&lt;BR /&gt;boxplot x=Diagnosis y=PP_cells_percentage / display=(caps mean median)&lt;BR /&gt;fillattrs=(color=white)&lt;BR /&gt;meanattrs=(color=Black symbol=diamondFilled) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;*** the order of scatterplot statements and color symbols is &lt;FONT color="#000000"&gt;T1DM&lt;/FONT&gt;, &lt;FONT color="#000000"&gt;T2DM&lt;/FONT&gt;, &lt;FONT color="#000000"&gt;No-Diabetes&lt;/FONT&gt;;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;scatterplot x=&lt;FONT color="#000000"&gt;&lt;STRONG&gt;T1DM&lt;/STRONG&gt;&lt;/FONT&gt; y=PP_cells_percentage / xaxis=x2 markerattrs=(color=&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;blue&lt;/STRONG&gt;&lt;/FONT&gt; symbol=circleFilled) ;&lt;BR /&gt;scatterplot x=&lt;FONT color="#000000"&gt;&lt;STRONG&gt;T2DM&lt;/STRONG&gt;&lt;/FONT&gt; y=PP_cells_percentage / xaxis=x2 markerattrs=(color=&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;red&lt;/FONT&gt;&lt;/STRONG&gt; symbol=circleFilled);&lt;BR /&gt;scatterplot x=&lt;STRONG&gt;&lt;FONT color="#000000"&gt;NoDiabetes&lt;/FONT&gt;&lt;/STRONG&gt; y=PP_cells_percentage / xaxis=x2 markerattrs=(color=&lt;FONT color="#008000"&gt;&lt;STRONG&gt;green&lt;/STRONG&gt;&lt;/FONT&gt; symbol=circleFilled);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 19:15:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/527808#M22194</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2019-01-16T19:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template- Tick value sequence</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/527868#M22195</link>
      <description>&lt;P&gt;Hello Pink_Poodle!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have actually tried with&amp;nbsp;&lt;EM&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#000000"&gt;tickValuelist&lt;/FONT&gt;=&lt;/FONT&gt;&lt;/EM&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;1 2 3&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;) option as well. With that, the position of T1DM and T2DM box-plot changes, but the data represented then becomes correct. I tried something new- Look for the color code. I created new dummy variables to convert my x-axis dummy variables to numeric variable. I have a feeling the issue could be in the dataset?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Organized_cytof.png" style="width: 419px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26318i56D309B54F2D0260/image-dimensions/419x314?v=v2" width="419" height="314" role="button" title="Organized_cytof.png" alt="Organized_cytof.png" /&gt;&lt;/span&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;data cytofpercent_scatter ;&lt;BR /&gt;set cytofpercent ;&lt;BR /&gt;if Diagnosis ='T1DM' then &lt;FONT color="#800080"&gt;T1DM&lt;/FONT&gt;= 2 ;&lt;BR /&gt;If Diagnosis ='T2DM' then &lt;FONT color="#800080"&gt;T2DM&lt;/FONT&gt;= 1 ;&lt;BR /&gt;else if Diagnosis ='No-Diabetes' then &lt;FONT color="#800080"&gt;NoDiabetes&lt;/FONT&gt;=3 ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Convert numeric values back to categories for axis display */&lt;BR /&gt;proc format;&lt;BR /&gt;value Diagnosis&lt;BR /&gt;2 = 'T1DM'&lt;BR /&gt;1 = 'T2DM'&lt;BR /&gt;3 = 'No-Diabetes'&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=cytofpercent_scatter ;&lt;BR /&gt;by Donor;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph cytof.overlay;&lt;BR /&gt;begingraph;&lt;BR /&gt;entryTitle "PP CELL DISTRIBUTION";&lt;BR /&gt;layout overlay / x2axisopts=(display=none)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;xaxisopts=(display=(tickvalues) linearopts=(tickvaluelist=(1 2 3) tickvalueformat=Diagnosis.))&amp;nbsp;&lt;BR /&gt;yaxisopts= (label= "PP Cell Percentage (%)" labelattrs=(weight=bold))&lt;BR /&gt;walldisplay=none ;&lt;BR /&gt;boxplot x=Diagnosis y=PP_cells_percentage / display=(caps median mean connect)&lt;BR /&gt;connect=median&lt;BR /&gt;connectattrs=(color=Black pattern=4)&lt;BR /&gt;fillattrs=(color=white)&lt;BR /&gt;meanattrs=(color=Black symbol=diamondFilled) ;&lt;/P&gt;&lt;P&gt;scatterplot x=&lt;FONT color="#800080"&gt;eval(0.08*rannor(57)+T1DM)&lt;/FONT&gt; y=PP_cells_percentage / xaxis=x2 markerattrs=(color=blue symbol=circleFilled) ;&lt;BR /&gt;scatterplot x=&lt;FONT color="#800080"&gt;eval(0.08*rannor(57)+T2DM)&lt;/FONT&gt; y=PP_cells_percentage / xaxis=x2 markerattrs=(color=red symbol=circleFilled);&lt;BR /&gt;scatterplot x=&lt;FONT color="#800080"&gt;eval(0.08*rannor(57)+NoDiabetes)&lt;/FONT&gt; y=PP_cells_percentage / xaxis=x2 markerattrs=(color=green symbol=circleFilled);&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods listing style=listing;&lt;BR /&gt;proc sgrender data=cytofpercent_scatter&lt;BR /&gt;template="cytof.overlay";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 22:09:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/527868#M22195</guid>
      <dc:creator>nsamanta</dc:creator>
      <dc:date>2019-01-16T22:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template- Tick value sequence</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/527922#M22196</link>
      <description>&lt;P&gt;Hi nsamanta,&lt;/P&gt;&lt;P&gt;This is a very nice code. One interesting thing I found out is that a tick value list does no have to be numeric. That could eliminate the format step:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/65377/HTML/default/viewer.htm#p1iii02qgue4etn1l7fgxzr388sb.htm#n0vulgt0gp4wypn10an7nyz1flq8" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatgraph/65377/HTML/default/viewer.htm#p1iii02qgue4etn1l7fgxzr388sb.htm#n0vulgt0gp4wypn10an7nyz1flq8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 04:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/527922#M22196</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2019-01-17T04:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template- Tick value sequence</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/528148#M22204</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try this option again then. I kept reading everywhere that it has to be a Numeric value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also is there a plotting option where I can just show the scatter/Jitter for each x-axis group and the Median line? i.e. no boxplot in the background?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 20:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/528148#M22204</guid>
      <dc:creator>nsamanta</dc:creator>
      <dc:date>2019-01-17T20:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template- Tick value sequence</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/528238#M22210</link>
      <description>&lt;P&gt;You are right, tick value list can only be numeric:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/65377/HTML/default/viewer.htm#p1iii02qgue4etn1l7fgxzr388sb.htm#n0tsqph132jy5jn17wfmu2k4xoox" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatgraph/65377/HTML/default/viewer.htm#p1iii02qgue4etn1l7fgxzr388sb.htm#n0tsqph132jy5jn17wfmu2k4xoox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The question about boxes would require modification of the box plot statement. Here are the options for that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/65377/HTML/default/viewer.htm#p1v78jvcpcsd1yn1fd4rjy4ka93d.htm#p0cgw9sqvbjj97n11zr3l80oxdfk" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatgraph/65377/HTML/default/viewer.htm#p1v78jvcpcsd1yn1fd4rjy4ka93d.htm#p0cgw9sqvbjj97n11zr3l80oxdfk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It could be possible to conceal the boxes by using the box width option with boxwidth = 0.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 04:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Template-Tick-value-sequence/m-p/528238#M22210</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2019-01-18T04:33:10Z</dc:date>
    </item>
  </channel>
</rss>

