<?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 template histogram with different groups in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/808872#M22785</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132719"&gt;@echoli&lt;/a&gt;, in the end, did you find a solution? I know it has been a while since the last post but I am facing the exact same problem and don't know how to do so if you have a hint, I would be very interested &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;P.S.: Please be kind, I am a SAS newbie &lt;span class="lia-unicode-emoji" title=":front_facing_baby_chick:"&gt;🐥&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 17:06:05 GMT</pubDate>
    <dc:creator>Mombi</dc:creator>
    <dc:date>2022-04-20T17:06:05Z</dc:date>
    <item>
      <title>proc template histogram with different groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/350648#M12179</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I run a dynamic proc template of histogram but with different groups? I have a variable, it has three groups, I can run with different groups in boxplot, but how can I edit&amp;nbsp;histogram part by groups? Below is the code I use and the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph mygraphs.dynamics;&lt;BR /&gt;begingraph;&lt;BR /&gt;layout lattice / columns = 1 rows = 2&lt;BR /&gt;columndatarange = union&lt;BR /&gt;rowgutter = 2px;&lt;BR /&gt;mvar SYSDATE9 SCALE;&lt;BR /&gt;nmvar BINS;&lt;BR /&gt;dynamic VAR VARLABEL;&lt;BR /&gt;entrytitle 'Histogram of ' VAR;&lt;BR /&gt;entrytitle 'with Normal Distribution';&lt;BR /&gt;columnaxes;&lt;BR /&gt;columnaxis / label = 'var';&lt;BR /&gt;endcolumnaxes;&lt;BR /&gt;layout overlay / xaxisopts=(label=VARLABEL)&lt;BR /&gt;yaxisopts = (offsetmin = .03);&lt;BR /&gt;histogram VAR / display = standard;&lt;BR /&gt;class group;&lt;BR /&gt;densityplot VAR / normal( );&lt;BR /&gt;fringeplot var;&lt;BR /&gt;endlayout;&lt;BR /&gt;boxplot y = var x = group/ orient = horizontal;&lt;BR /&gt;endlayout;&lt;BR /&gt;entryfootnote halign=right "Created: " SYSDATE9 / textattrs=GraphValueText;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%let scale=percent;&lt;BR /&gt;proc sgrender data=combine_1 template='mygraphs.dynamics';&lt;BR /&gt;dynamic var='P_SCALE_SCORE_PHYSICAL_FUNCTI' varlabel='P_SCALE_SCORE_PHYSICAL_FUNCTI';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8357iBF24D278D8A0E4D3/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="proc template.png" title="proc template.png" /&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 21:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/350648#M12179</guid>
      <dc:creator>echoli</dc:creator>
      <dc:date>2017-04-17T21:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: proc template histogram with different groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/350651#M12181</link>
      <description>&lt;P&gt;Are you wanting to create histogram for the same groups as in your box plot?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 21:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/350651#M12181</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-17T21:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc template histogram with different groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/350653#M12182</link>
      <description>&lt;P&gt;Yes, the same groups. I tried to use class below histogram statement, but it doesn't work. Any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 21:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/350653#M12182</guid>
      <dc:creator>echoli</dc:creator>
      <dc:date>2017-04-17T21:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc template histogram with different groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/350657#M12183</link>
      <description>&lt;P&gt;We added GROUP support to histograms in SAS 9.4. What version of SAS are you running?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 21:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/350657#M12183</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-04-17T21:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc template histogram with different groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/350659#M12184</link>
      <description>&lt;P&gt;I use SAS 9.4, but I didn't find group&amp;nbsp;option. I searched SAS 9.3, didn't find helpful link in 9.4. Could you give me a link or some idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 21:48:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/350659#M12184</guid>
      <dc:creator>echoli</dc:creator>
      <dc:date>2017-04-17T21:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc template histogram with different groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/808872#M22785</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132719"&gt;@echoli&lt;/a&gt;, in the end, did you find a solution? I know it has been a while since the last post but I am facing the exact same problem and don't know how to do so if you have a hint, I would be very interested &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;P.S.: Please be kind, I am a SAS newbie &lt;span class="lia-unicode-emoji" title=":front_facing_baby_chick:"&gt;🐥&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 17:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-template-histogram-with-different-groups/m-p/808872#M22785</guid>
      <dc:creator>Mombi</dc:creator>
      <dc:date>2022-04-20T17:06:05Z</dc:date>
    </item>
  </channel>
</rss>

