<?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 univariate histogram in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536546#M6633</link>
    <description>&lt;P&gt;I see you are using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CLASS AAA;&lt;/P&gt;
&lt;P&gt;Is this part of a comparative histogram that appears in a panel?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 19:15:32 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-02-18T19:15:32Z</dc:date>
    <item>
      <title>Proc univariate histogram</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536521#M6629</link>
      <description>&lt;P&gt;Trying to create something similar to the following whereby the legend for the red and green line is within the box.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27262i6416129E1B72F77C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, using the code I have, the legend for the line still appears by itself:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc univariate data=Score noprint plot;&lt;BR /&gt;var Predp;&lt;BR /&gt;class AAA;&lt;BR /&gt;histogram Predp /&lt;BR /&gt;kernel (k=normal color=green c = 0.75 l=1);&lt;BR /&gt;inset n ='N' (comma6.0) mean ='Mean' (6.2)&lt;BR /&gt;median ='Median' (6.2) mode ='Mode'(6.2)/ position=NE;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27263i0E70F257018C2123/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled1.png" alt="Untitled1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 16:00:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536521#M6629</guid>
      <dc:creator>CHELS</dc:creator>
      <dc:date>2019-02-18T16:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc univariate histogram</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536546#M6633</link>
      <description>&lt;P&gt;I see you are using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CLASS AAA;&lt;/P&gt;
&lt;P&gt;Is this part of a comparative histogram that appears in a panel?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 19:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536546#M6633</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-02-18T19:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc univariate histogram</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536577#M6634</link>
      <description>&lt;P&gt;Yes, so there are two stacked histograms and I want to compare between the two.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 20:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536577#M6634</guid>
      <dc:creator>CHELS</dc:creator>
      <dc:date>2019-02-18T20:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc univariate histogram</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536621#M6644</link>
      <description>&lt;P&gt;But then where do you want the legend?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My advice is to suppress the legend by using the NOCURVELEGEND option and then add the kernel C= value to the inset. Here is an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=Sashelp.class noprint plot;
var height;
class sex;
histogram height / NOCURVELEGEND
        kernel (k=normal color=green c = 0.75 l=1);
inset n ='N' (comma6.0) mean ='Mean' (6.2)
        median ='Median' (6.2) mode ='Mode'(6.2) 
        KERNEL(C) / position=NE;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Feb 2019 00:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536621#M6644</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-02-19T00:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc univariate histogram</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536643#M6647</link>
      <description>&lt;P&gt;You could go for proc sgplot (more graphing options, fewer estimation options)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.heart;
histogram cholesterol;
density cholesterol / group=sex type=kernel;
keylegend / position=topright location=inside across=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot6.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27275i70F45D33E41DEE3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot6.png" alt="SGPlot6.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 04:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536643#M6647</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-02-19T04:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc univariate histogram</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536770#M6660</link>
      <description>&lt;P&gt;I want the legend for the curve to be inside the legend box together with other estimates (N, Mean, Median etc.). Actually, it doesn't make too much of a difference where that curve legend is but I am trying to follow an output template that requires it to be inside the box.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 15:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-univariate-histogram/m-p/536770#M6660</guid>
      <dc:creator>CHELS</dc:creator>
      <dc:date>2019-02-19T15:17:08Z</dc:date>
    </item>
  </channel>
</rss>

