<?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 SGPanel not displaying expected results (using sashelp.cars) in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPanel-not-displaying-expected-results-using-sashelp-cars/m-p/710222#M20863</link>
    <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Perfect - that's exactly what I was looking for. The example I was following on the documention.sas.com website showed their option as "&lt;SPAN&gt;stat&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;percent" so I had tried changing it to&amp;nbsp;stat&lt;SPAN class="token operator"&gt;=freq, but kept getting error messages and I couldn't find better examples on the&amp;nbsp;documention.sas.com website. Your solution using scale=count is the correct option to use to get it display how I wanted it. Thank you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 17:11:30 GMT</pubDate>
    <dc:creator>Buzzy_Bee</dc:creator>
    <dc:date>2021-01-08T17:11:30Z</dc:date>
    <item>
      <title>Proc SGPanel not displaying expected results (using sashelp.cars)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPanel-not-displaying-expected-results-using-sashelp-cars/m-p/710200#M20861</link>
      <description>&lt;P&gt;I was trying to create histograms for the sashelp.cars data set, and I want price (MSRP) binned into 5 groups and I also want to display Origin and Type on the plot. However, my resulting display just isn't right and I'm not sure what I'm doing wrong. A quick proc freq shows that Sedans are by far the most common Type of car in the three car manufacturing Origins, but the stacked plot shows USA mostly has Sports cars. Sports is the least common in all regions so it seems my charts are somehow backwards.&lt;/P&gt;
&lt;P&gt;I don't have to use SGPanel if there is something better that you recommend, but I do want to be able to bin my continuous variable (price in this case). Thanks for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc freq data=sashelp.cars; 
tables type*origin;
run;
proc sgpanel data=sashelp.cars;
	where type in('SUV','Sedan','Sports');
	panelby origin;
	histogram msrp / group=type nbins=5;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Jan 2021 16:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPanel-not-displaying-expected-results-using-sashelp-cars/m-p/710200#M20861</guid>
      <dc:creator>Buzzy_Bee</dc:creator>
      <dc:date>2021-01-08T16:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPanel not displaying expected results (using sashelp.cars)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPanel-not-displaying-expected-results-using-sashelp-cars/m-p/710213#M20862</link>
      <description>&lt;P&gt;See if this makes more sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgpanel data=sashelp.cars;
	where type in('SUV','Sedan','Sports');
	panelby origin;
	histogram msrp / group=type&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt; scale=count&lt;/STRONG&gt;&lt;/FONT&gt; nbins=5;
run;&lt;/PRE&gt;
&lt;P&gt;The default for the scale is percent and with grouped values I think the denominator is not all cars but the type of car. So roughly 37 percent of Sports cars are in the bin with the price of $50,000&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 16:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPanel-not-displaying-expected-results-using-sashelp-cars/m-p/710213#M20862</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-08T16:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPanel not displaying expected results (using sashelp.cars)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPanel-not-displaying-expected-results-using-sashelp-cars/m-p/710222#M20863</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Perfect - that's exactly what I was looking for. The example I was following on the documention.sas.com website showed their option as "&lt;SPAN&gt;stat&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;percent" so I had tried changing it to&amp;nbsp;stat&lt;SPAN class="token operator"&gt;=freq, but kept getting error messages and I couldn't find better examples on the&amp;nbsp;documention.sas.com website. Your solution using scale=count is the correct option to use to get it display how I wanted it. Thank you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 17:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPanel-not-displaying-expected-results-using-sashelp-cars/m-p/710222#M20863</guid>
      <dc:creator>Buzzy_Bee</dc:creator>
      <dc:date>2021-01-08T17:11:30Z</dc:date>
    </item>
  </channel>
</rss>

