<?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 Jitter in proc template in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Jitter-in-proc-template/m-p/485554#M16749</link>
    <description>&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4.&lt;/P&gt;&lt;P&gt;I have a problem with jitter option in scatterplot statement within proc template.&lt;/P&gt;&lt;P&gt;I got a strange jittering for group "TRT A".&lt;/P&gt;&lt;P&gt;Bellow my SAS code and output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc template;
   define statgraph plot1;
   begingraph;
      ENTRYTITLE  " Title"   ;


     layout datalattice COLUMNVAR=TRTSEQPN / columns=2 rows=1 headerlabeldisplay=value headerlabelattrs=(size=8pt)
            headerlabelattrs=GraphUnicodeText OUTERPAD=0.2 cm columngutter=8
     columnaxisopts=(display=(ticks tickvalues LABEL)  LABEL="xx" TICKVALUEATTRS= (family = "Arial" size = 7pt)
             type=discrete OFFSETMIN=0.15 OFFSETMAX=0.15) 
     rowaxisopts =(display=(ticks tickvalues LABEL) type=log 
            logopts=(BASE=2 Thresholdmax=1 Thresholdmin=1 MINORTICKS =TRUE MINORGRID=TRUE) 
            labelattrs=GraphUnicodeText labelattrs=(size=7pt) LABEL="y"  griddisplay=on )
     INSET=(nbc) insetopts=(autoalign=(topleft) CONTENTDISPLAY=VALUE DATASCHEME=Matched);
      layout prototype;
      SCATTERPLOT X=vis Y=aval/ group=TRTSEQPN MARKERATTRS=(size=8 ) jitter=auto JITTEROPTS=(width=0.50 );
  

      endlayout;


      endlayout;
   endgraph;
   end;
 quit;

proc format;
  value trtf 1="trt A"
             2="trt B";
Run;

proc sgrender data=im03 template=plot1 ; 
FORMAT  TRTSEQPN trtf. ;
run;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGRender14.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22358i69A651C1B601CF61/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGRender14.png" alt="SGRender14.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2018 18:21:14 GMT</pubDate>
    <dc:creator>statsas</dc:creator>
    <dc:date>2018-08-09T18:21:14Z</dc:date>
    <item>
      <title>Jitter in proc template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Jitter-in-proc-template/m-p/485554#M16749</link>
      <description>&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4.&lt;/P&gt;&lt;P&gt;I have a problem with jitter option in scatterplot statement within proc template.&lt;/P&gt;&lt;P&gt;I got a strange jittering for group "TRT A".&lt;/P&gt;&lt;P&gt;Bellow my SAS code and output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc template;
   define statgraph plot1;
   begingraph;
      ENTRYTITLE  " Title"   ;


     layout datalattice COLUMNVAR=TRTSEQPN / columns=2 rows=1 headerlabeldisplay=value headerlabelattrs=(size=8pt)
            headerlabelattrs=GraphUnicodeText OUTERPAD=0.2 cm columngutter=8
     columnaxisopts=(display=(ticks tickvalues LABEL)  LABEL="xx" TICKVALUEATTRS= (family = "Arial" size = 7pt)
             type=discrete OFFSETMIN=0.15 OFFSETMAX=0.15) 
     rowaxisopts =(display=(ticks tickvalues LABEL) type=log 
            logopts=(BASE=2 Thresholdmax=1 Thresholdmin=1 MINORTICKS =TRUE MINORGRID=TRUE) 
            labelattrs=GraphUnicodeText labelattrs=(size=7pt) LABEL="y"  griddisplay=on )
     INSET=(nbc) insetopts=(autoalign=(topleft) CONTENTDISPLAY=VALUE DATASCHEME=Matched);
      layout prototype;
      SCATTERPLOT X=vis Y=aval/ group=TRTSEQPN MARKERATTRS=(size=8 ) jitter=auto JITTEROPTS=(width=0.50 );
  

      endlayout;


      endlayout;
   endgraph;
   end;
 quit;

proc format;
  value trtf 1="trt A"
             2="trt B";
Run;

proc sgrender data=im03 template=plot1 ; 
FORMAT  TRTSEQPN trtf. ;
run;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGRender14.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22358i69A651C1B601CF61/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGRender14.png" alt="SGRender14.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 18:21:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Jitter-in-proc-template/m-p/485554#M16749</guid>
      <dc:creator>statsas</dc:creator>
      <dc:date>2018-08-09T18:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Jitter in proc template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Jitter-in-proc-template/m-p/485863#M16751</link>
      <description>&lt;P&gt;Since the markers are jittered then you will have to describe just what the actual "problem" is.&lt;/P&gt;
&lt;P&gt;I suspect that you have an expected appearance but you don't say what that would be.&lt;/P&gt;
&lt;P&gt;This from the documentation on the WIDTH option for JITTEROPTS may apply:&lt;/P&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-summaryNote"&gt;Note&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;For a discrete axis, this option has effect only when the markers cannot be clustered side-by-side without overlapping. When WIDTH= is set to a value that is sufficient to eliminate marker overlap in that case, increasing the value further has no effect.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;You have specified the x axis as discrete. If your issue is the odd vertical dispersion of markers I suspect the procedure is attempting to avoid overlapping the markers&amp;nbsp;in both vertical and horizontal. Also o character has more area for overlapping than + so things move further apart to avoid the overlap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And without any data we can't test your code for modification. From your display I would guess that Trt A has more records with similar Y values.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 16:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Jitter-in-proc-template/m-p/485863#M16751</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-10T16:53:01Z</dc:date>
    </item>
  </channel>
</rss>

