<?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 sgplot density plot by group/class in one graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-density-plot-by-group-class-in-one-graph/m-p/433694#M14974</link>
    <description>&lt;P&gt;I have the suspicion that this is a 9.4 SAS version feature as I am getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, FREQ, LEGENDLABEL, LINEATTRS, NAME, SCALE, TRANSPARENCY, TYPE,&lt;BR /&gt;X2AXIS, Y2AXIS.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with an older version of sas ...&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2018 20:41:24 GMT</pubDate>
    <dc:creator>csetzkorn</dc:creator>
    <dc:date>2018-02-02T20:41:24Z</dc:date>
    <item>
      <title>proc sgplot density plot by group/class in one graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-density-plot-by-group-class-in-one-graph/m-p/433487#M14968</link>
      <description>&lt;P&gt;Looking at this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2012/02/06/comparative-densities/" target="_self"&gt;https://blogs.sas.com/content/graphicallyspeaking/2012/02/06/comparative-densities/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'Mileage Distribution by Origin';
proc sgplot data=multiVar;
density mpg_usa / legendlabel='USA' lineattrs=(pattern=solid);
density mpg_asia / legendlabel='Asia' lineattrs=(pattern=solid);
density mpg_eur / legendlabel='Europe' lineattrs=(pattern=solid);
keylegend / location=inside position=topright across=1;
xaxis display=(nolabel);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here mpg_usa, mpg_asia and mpg_eur are separate columns. Can I also create separate plots like this if I have one column X and one group/class column in one plot? Hope this makes sense?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 11:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-density-plot-by-group-class-in-one-graph/m-p/433487#M14968</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-02-02T11:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot density plot by group/class in one graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-density-plot-by-group-class-in-one-graph/m-p/433568#M14973</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; Density plot supports GROUP option.&amp;nbsp; The option was added after the writing of this example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'Mileage Distribution by Origin';
proc sgplot data=sashelp.cars;
  density mpg_city / group=origin lineattrs=(pattern=solid);
  keylegend / location=inside position=topright across=1;
  xaxis display=(nolabel);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Feb 2018 15:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-density-plot-by-group-class-in-one-graph/m-p/433568#M14973</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-02-02T15:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot density plot by group/class in one graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-density-plot-by-group-class-in-one-graph/m-p/433694#M14974</link>
      <description>&lt;P&gt;I have the suspicion that this is a 9.4 SAS version feature as I am getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, FREQ, LEGENDLABEL, LINEATTRS, NAME, SCALE, TRANSPARENCY, TYPE,&lt;BR /&gt;X2AXIS, Y2AXIS.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with an older version of sas ...&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 20:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-density-plot-by-group-class-in-one-graph/m-p/433694#M14974</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-02-02T20:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot density plot by group/class in one graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-density-plot-by-group-class-in-one-graph/m-p/433695#M14975</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; 9.40M2.&amp;nbsp; 2015.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 20:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-density-plot-by-group-class-in-one-graph/m-p/433695#M14975</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-02-02T20:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot density plot by group/class in one graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-density-plot-by-group-class-in-one-graph/m-p/433708#M14976</link>
      <description>&lt;P&gt;For an example of using the GROUP= option, see the second example at&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/03/09/comparative-panel-overlay-histograms-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/03/09/comparative-panel-overlay-histograms-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 21:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-density-plot-by-group-class-in-one-graph/m-p/433708#M14976</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-02-02T21:57:47Z</dc:date>
    </item>
  </channel>
</rss>

