<?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: Density plot with filled color under curves in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Density-plot-with-filled-color-under-curves/m-p/928281#M24632</link>
    <description>&lt;P&gt;You can also get a panel by using PROC UNIVARIATE. PROC UNIVARIATE does not enable you to control all aspects of the plot, but for a quick visualization, it suffices. For publication-quality graphics, I think KSharp's idea enables more control.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=mydata;
   class group;
   var value;
   histogram value / normal(fill) nobars nrow=3 nocurvelegend; 
   ods select Histogram;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 May 2024 13:45:41 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2024-05-14T13:45:41Z</dc:date>
    <item>
      <title>Density plot with filled color under curves</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Density-plot-with-filled-color-under-curves/m-p/928204#M24625</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How do I fill color under density curves? Here are my sample data and sgpanel procedure. TIA!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Sample data */&lt;BR /&gt;data mydata;&lt;BR /&gt;input group $ value;&lt;BR /&gt;datalines;&lt;BR /&gt;A 10&lt;BR /&gt;A 12&lt;BR /&gt;A 13&lt;BR /&gt;B 9&lt;BR /&gt;B 11&lt;BR /&gt;B 14&lt;BR /&gt;C 8&lt;BR /&gt;C 10&lt;BR /&gt;C 11&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/* Creating the panelled density plot */&lt;BR /&gt;proc sgpanel data=mydata;&lt;BR /&gt;panelby group / layout=rowlattice columns=1 novarname;&lt;BR /&gt;density value;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 20:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Density-plot-with-filled-color-under-curves/m-p/928204#M24625</guid>
      <dc:creator>vacummyouyou</dc:creator>
      <dc:date>2024-05-13T20:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Density plot with filled color under curves</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Density-plot-with-filled-color-under-curves/m-p/928223#M24626</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;
proc sgpanel data=sashelp.heart;
panelby bp_status / layout=rowlattice columns=1 novarname;
density weight;
ods output sgpanel=sgpanel;
run;
ods select all;

proc sgpanel data=sgpanel noautolegend;
panelby bp_status / layout=rowlattice columns=1 novarname;
series x=NORMLD_WEIGHT____X y=NORMLD_WEIGHT____Y /lineattrs=(thickness=2) group=bp_status;
band x=NORMLD_WEIGHT____X lower=0 upper=NORMLD_WEIGHT____Y/transparency=0.8 group=bp_status;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1715654685794.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96498i35639CCB8F3EAF96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1715654685794.png" alt="Ksharp_0-1715654685794.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 02:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Density-plot-with-filled-color-under-curves/m-p/928223#M24626</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-05-14T02:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Density plot with filled color under curves</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Density-plot-with-filled-color-under-curves/m-p/928281#M24632</link>
      <description>&lt;P&gt;You can also get a panel by using PROC UNIVARIATE. PROC UNIVARIATE does not enable you to control all aspects of the plot, but for a quick visualization, it suffices. For publication-quality graphics, I think KSharp's idea enables more control.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=mydata;
   class group;
   var value;
   histogram value / normal(fill) nobars nrow=3 nocurvelegend; 
   ods select Histogram;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2024 13:45:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Density-plot-with-filled-color-under-curves/m-p/928281#M24632</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-05-14T13:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Density plot with filled color under curves</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Density-plot-with-filled-color-under-curves/m-p/928301#M24633</link>
      <description>&lt;P&gt;Thank you! You guys are awesome!!!&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 15:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Density-plot-with-filled-color-under-curves/m-p/928301#M24633</guid>
      <dc:creator>vacummyouyou</dc:creator>
      <dc:date>2024-05-14T15:30:46Z</dc:date>
    </item>
  </channel>
</rss>

