<?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: scatterplot jitter in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/scatterplot-jitter/m-p/667561#M20183</link>
    <description>&lt;P&gt;I believe that is correct. You can use ODS OUTPUT to save the underlying data to a SAS data set, then use PROC COMPARE to show that the values are the same:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data IRIS; set SASHELP.IRIS; where PETALLENGTH &amp;lt; 20;                             
run;

ods output sgplot =sg1;
proc sgplot data=IRIS; 
scatter x=PETALLENGTH y=PETALWIDTH/ jitter jitterwidth=1; 
xaxis grid;
yaxis grid;
run;

/* wait 3 seconds, just in case the seed is based on the time */
data _null_;
call sleep(3000);
run;

ods output sgplot =sg2;
proc sgplot data=IRIS; 
scatter x=PETALLENGTH y=PETALWIDTH/ jitter jitterwidth=1;
xaxis grid;
yaxis grid;
run;

proc compare base=sg1 compare=sg2;
run;
/* RESULT: No unequal values were found. All values compared are exactly  
            equal. */&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Jul 2020 20:05:09 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-07-07T20:05:09Z</dc:date>
    <item>
      <title>scatterplot jitter</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatterplot-jitter/m-p/666487#M20155</link>
      <description>&lt;P&gt;Hi all sas experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have quick question about scatterplot with jitter. if the input data are same, the scatter plot with jitter's sas code is also same, the output plot shall be exacatly&amp;nbsp;same (each point position exactly same position)&amp;nbsp;when I run&amp;nbsp;this code&amp;nbsp;different times. correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lee&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 21:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatterplot-jitter/m-p/666487#M20155</guid>
      <dc:creator>lyan1971</dc:creator>
      <dc:date>2020-07-01T21:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: scatterplot jitter</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatterplot-jitter/m-p/666521#M20156</link>
      <description>That's a really interesting question...I have no idea. To be safe you could set the random seed ahead of time anyways but I'm curious as to what the official answer will be, I'll move your question to the graphics forum. Hopefully that gets you an answer. &lt;BR /&gt;&lt;BR /&gt;You can set your random seed using &lt;BR /&gt;&lt;BR /&gt;call streaminit(99);&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Jul 2020 01:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatterplot-jitter/m-p/666521#M20156</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-07-02T01:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: scatterplot jitter</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatterplot-jitter/m-p/666528#M20158</link>
      <description>&lt;P&gt;A quick test (on my old version) shows that the randomisation algorithm is constant.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / width=320px height=200px;
data IRIS; set SASHELP.IRIS; where PETALLENGTH &amp;lt; 20;                             
proc sgplot data=IRIS; scatter x=PETALLENGTH y=PETALWIDTH/ jitter; 
proc sgplot data=IRIS; scatter x=PETALLENGTH y=PETALWIDTH/ jitter;
proc sgplot data=IRIS; scatter x=PETALLENGTH y=PETALWIDTH/ jitter;
proc sgplot data=IRIS; scatter x=PETALLENGTH y=PETALWIDTH /jitter;
proc sgplot data=IRIS; scatter x=PETALLENGTH y=PETALWIDTH/ jitter;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is the picture visible below?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisNZ_0-1593657406032.png" style="width: 283px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46840iF1855BE829AAAB71/image-dimensions/283x1021?v=v2" width="283" height="1021" role="button" title="ChrisNZ_0-1593657406032.png" alt="ChrisNZ_0-1593657406032.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorChrisNZ_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorChrisNZ_2" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorChrisNZ_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 02:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatterplot-jitter/m-p/666528#M20158</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-02T02:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: scatterplot jitter</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatterplot-jitter/m-p/667561#M20183</link>
      <description>&lt;P&gt;I believe that is correct. You can use ODS OUTPUT to save the underlying data to a SAS data set, then use PROC COMPARE to show that the values are the same:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data IRIS; set SASHELP.IRIS; where PETALLENGTH &amp;lt; 20;                             
run;

ods output sgplot =sg1;
proc sgplot data=IRIS; 
scatter x=PETALLENGTH y=PETALWIDTH/ jitter jitterwidth=1; 
xaxis grid;
yaxis grid;
run;

/* wait 3 seconds, just in case the seed is based on the time */
data _null_;
call sleep(3000);
run;

ods output sgplot =sg2;
proc sgplot data=IRIS; 
scatter x=PETALLENGTH y=PETALWIDTH/ jitter jitterwidth=1;
xaxis grid;
yaxis grid;
run;

proc compare base=sg1 compare=sg2;
run;
/* RESULT: No unequal values were found. All values compared are exactly  
            equal. */&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jul 2020 20:05:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatterplot-jitter/m-p/667561#M20183</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-07-07T20:05:09Z</dc:date>
    </item>
  </channel>
</rss>

