<?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: Creating Statistical (Wilkinson) dot plots in SAS in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Creating-Statistical-Wilkinson-dot-plots-in-SAS/m-p/417637#M14355</link>
    <description>&lt;P&gt;Here's a start for you. Definitely needs some customizing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sort data=sashelp.class out=class;
    by age;
run;

data class_list;
    set class;
    by age;

    if first.age then
        y=0;
    y + 1;
run;

PROC SGPLOT data=class_list;
    scatter x=age y=y / 
        FILLEDOUTLINEDMARKERS 
        markerattrs=(symbol=circlefilled size=20) 
        markerfillattrs=(color=blue);
        
    yaxis values=(0 to 10 by 2);
run;

quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 01 Dec 2017 02:24:07 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-12-01T02:24:07Z</dc:date>
    <item>
      <title>Creating Statistical (Wilkinson) dot plots in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-Statistical-Wilkinson-dot-plots-in-SAS/m-p/417595#M14349</link>
      <description>&lt;P&gt;Is there a way to create a statistical (Wilkinson) dot plot in SAS? That is, a dot plot with each observation indicated by a dot vs. a dot that represents the frequency of observations for the value. See the example here: &lt;A href="https://community.jmp.com/t5/JMP-Blog/JMP-add-in-for-statistical-dot-plots/ba-p/30343" target="_blank"&gt;https://community.jmp.com/t5/JMP-Blog/JMP-add-in-for-statistical-dot-plots/ba-p/30343&lt;/A&gt;. If there's not a built-in option to create a dot plot like this, any suggestions for using GTL to generate something similar?&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;</description>
      <pubDate>Thu, 30 Nov 2017 22:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-Statistical-Wilkinson-dot-plots-in-SAS/m-p/417595#M14349</guid>
      <dc:creator>afell89</dc:creator>
      <dc:date>2017-11-30T22:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Statistical (Wilkinson) dot plots in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-Statistical-Wilkinson-dot-plots-in-SAS/m-p/417596#M14350</link>
      <description>&lt;P&gt;How 'nice' do you need it to be? I think PROC UNIVARIATE does this but only in the listing output and you need an option to specify it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 22:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-Statistical-Wilkinson-dot-plots-in-SAS/m-p/417596#M14350</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-30T22:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Statistical (Wilkinson) dot plots in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-Statistical-Wilkinson-dot-plots-in-SAS/m-p/417599#M14351</link>
      <description>&lt;P&gt;I'd like it to be nice, ideally nice enough to incorporate into a larger report I output through SAS via ods rtf/pdf.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 22:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-Statistical-Wilkinson-dot-plots-in-SAS/m-p/417599#M14351</guid>
      <dc:creator>afell89</dc:creator>
      <dc:date>2017-11-30T22:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Statistical (Wilkinson) dot plots in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-Statistical-Wilkinson-dot-plots-in-SAS/m-p/417621#M14354</link>
      <description>&lt;P&gt;Ok, from what I understand, this isn't the same as SAS definition of dot plot - or at least between SAS BASE and JMP which is a little annoying but oh well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Technically, a dot plot doesn't add any value over a bar chart, but it's ultimately your choice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see a way to do this easily/automatically so the 'manual' way would be to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;Use the raw data, sort it by the values you have, so your X.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Create a second variable that can serve as a 'Y' variable which is basically a counter such as 1, 2, 3, 4, 5, 6 - &lt;A href="https://stats.idre.ucla.edu/sas/faq/how-can-i-create-an-enumeration-variable-by-groups/" target="_self"&gt;tutorial here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;3. Use a SCATTER statement to create the dots - you can use the GROUP options to create the multi colours if desired as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems relatively straightforward but if you have issues feel free to post back.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 23:22:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-Statistical-Wilkinson-dot-plots-in-SAS/m-p/417621#M14354</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-30T23:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Statistical (Wilkinson) dot plots in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-Statistical-Wilkinson-dot-plots-in-SAS/m-p/417637#M14355</link>
      <description>&lt;P&gt;Here's a start for you. Definitely needs some customizing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sort data=sashelp.class out=class;
    by age;
run;

data class_list;
    set class;
    by age;

    if first.age then
        y=0;
    y + 1;
run;

PROC SGPLOT data=class_list;
    scatter x=age y=y / 
        FILLEDOUTLINEDMARKERS 
        markerattrs=(symbol=circlefilled size=20) 
        markerfillattrs=(color=blue);
        
    yaxis values=(0 to 10 by 2);
run;

quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Dec 2017 02:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-Statistical-Wilkinson-dot-plots-in-SAS/m-p/417637#M14355</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-01T02:24:07Z</dc:date>
    </item>
  </channel>
</rss>

