<?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: How can I format a stem-and-leaf plot using SAS? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-format-a-stem-and-leaf-plot-using-SAS/m-p/528202#M5372</link>
    <description>&lt;P&gt;Can you post an example of your desired plot?&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jan 2019 23:09:00 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-01-17T23:09:00Z</dc:date>
    <item>
      <title>How can I format a stem-and-leaf plot using SAS?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-format-a-stem-and-leaf-plot-using-SAS/m-p/528199#M5370</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a stem-and-leaf plot of some data that I have but when I run the code, I get doubles for each stem value because the leaf value splits at 5. How can I stop this from occurring? Also, how can I sort the data in ascending order because currently the chart is printing in ascending order?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I have so far:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;DATA auto;&lt;BR /&gt;&amp;nbsp; INPUT scf;&lt;BR /&gt;&amp;nbsp; CARDS;&lt;BR /&gt;&amp;nbsp; 31&lt;BR /&gt;&amp;nbsp; 35&lt;BR /&gt;&amp;nbsp; 42&lt;BR /&gt;&amp;nbsp; 43&lt;BR /&gt;&amp;nbsp; 43&lt;BR /&gt;&amp;nbsp; 43&lt;BR /&gt;&amp;nbsp; 44&lt;BR /&gt;&amp;nbsp; 44&lt;BR /&gt;&amp;nbsp; 45&lt;BR /&gt;&amp;nbsp; 47&lt;BR /&gt;&amp;nbsp; 48&lt;BR /&gt;&amp;nbsp; 49&lt;BR /&gt;&amp;nbsp; 50&lt;BR /&gt;&amp;nbsp; 50&lt;BR /&gt;&amp;nbsp; 53&lt;BR /&gt;&amp;nbsp; 53&lt;BR /&gt;&amp;nbsp; 54&lt;BR /&gt;&amp;nbsp; 59&lt;BR /&gt;&amp;nbsp; 61&lt;BR /&gt;&amp;nbsp; 62&lt;BR /&gt;&amp;nbsp; 70&lt;BR /&gt;&amp;nbsp; 73&lt;BR /&gt;&amp;nbsp; 76&lt;BR /&gt;&amp;nbsp; ;&lt;/DIV&gt;&lt;DIV&gt;*PROC UNIVARIATE DATA=auto PLOTS;&lt;BR /&gt;ods listing;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;proc univariate data=auto plots;&lt;BR /&gt;&amp;nbsp; VAR scf;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I commented PROC UNIVARIATE DATA = auto PLOTS; out because I wasn't sure what the code does and it doesn't seem to change the output when I run it. I also need help printing the plot in ascending order because it is currently printing in descending order. I will appreciate any insight or input anyone can provide me. Thanks!&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jan 2019 23:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-format-a-stem-and-leaf-plot-using-SAS/m-p/528199#M5370</guid>
      <dc:creator>Fara_I</dc:creator>
      <dc:date>2019-01-17T23:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format a stem-and-leaf plot using SAS?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-format-a-stem-and-leaf-plot-using-SAS/m-p/528200#M5371</link>
      <description>&lt;P&gt;It would help if you could attach an image of what you're getting and some indication of what you don't like about that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/252980"&gt;@Fara_I&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create a stem-and-leaf plot of some data that I have but when I run the code, I get doubles for each stem value because the leaf value splits at 5. How can I stop this from occurring? Also, how can I sort the data in ascending order because currently the chart is printing in ascending order?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code I have so far:&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;DATA auto;&lt;BR /&gt;&amp;nbsp; INPUT scf;&lt;BR /&gt;&amp;nbsp; CARDS;&lt;BR /&gt;&amp;nbsp; 31&lt;BR /&gt;&amp;nbsp; 35&lt;BR /&gt;&amp;nbsp; 42&lt;BR /&gt;&amp;nbsp; 43&lt;BR /&gt;&amp;nbsp; 43&lt;BR /&gt;&amp;nbsp; 43&lt;BR /&gt;&amp;nbsp; 44&lt;BR /&gt;&amp;nbsp; 44&lt;BR /&gt;&amp;nbsp; 45&lt;BR /&gt;&amp;nbsp; 47&lt;BR /&gt;&amp;nbsp; 48&lt;BR /&gt;&amp;nbsp; 49&lt;BR /&gt;&amp;nbsp; 50&lt;BR /&gt;&amp;nbsp; 50&lt;BR /&gt;&amp;nbsp; 53&lt;BR /&gt;&amp;nbsp; 53&lt;BR /&gt;&amp;nbsp; 54&lt;BR /&gt;&amp;nbsp; 59&lt;BR /&gt;&amp;nbsp; 61&lt;BR /&gt;&amp;nbsp; 62&lt;BR /&gt;&amp;nbsp; 70&lt;BR /&gt;&amp;nbsp; 73&lt;BR /&gt;&amp;nbsp; 76&lt;BR /&gt;&amp;nbsp; ;&lt;/DIV&gt;
&lt;DIV&gt;*PROC UNIVARIATE DATA=auto PLOTS;&lt;BR /&gt;ods listing;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;proc univariate data=auto plots;&lt;BR /&gt;&amp;nbsp; VAR scf;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I commented PROC UNIVARIATE DATA = auto PLOTS; out because I wasn't sure what the code does and it doesn't seem to change the output when I run it. I also need help printing the plot in ascending order because it is currently printing in descending order. I will appreciate any insight or input anyone can provide me. Thanks!&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 23:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-format-a-stem-and-leaf-plot-using-SAS/m-p/528200#M5371</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-17T23:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format a stem-and-leaf plot using SAS?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-format-a-stem-and-leaf-plot-using-SAS/m-p/528202#M5372</link>
      <description>&lt;P&gt;Can you post an example of your desired plot?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 23:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-format-a-stem-and-leaf-plot-using-SAS/m-p/528202#M5372</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-01-17T23:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format a stem-and-leaf plot using SAS?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-format-a-stem-and-leaf-plot-using-SAS/m-p/528444#M5432</link>
      <description>&lt;P&gt;The number of lines displayed in a line-printer plot, i.e. listing destination is controlled by the PLOTSIZE= option which the number of printed lines displayed including headers (text like Stem Leaf and information at the bottom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc univariate data=auto plots plotsize=10;
  VAR scf;
run;
quit;&lt;/PRE&gt;
&lt;P&gt;Seems to get close with the given data for the Stem and Leaf though the order is still smallest to largest upwards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data changes you may need to change the plot size. I think the default number of rows is based on the number of records and range of values.&lt;/P&gt;
&lt;P&gt;Note that if you have more than 49 values you likely wont get a stem and leaf plot but a bar chart, of sorts.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 20:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-format-a-stem-and-leaf-plot-using-SAS/m-p/528444#M5432</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-18T20:36:16Z</dc:date>
    </item>
  </channel>
</rss>

