<?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 How Do I Remove The Density Curve Labels from the PROC SGPLOT legend? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-Do-I-Remove-The-Density-Curve-Labels-from-the-PROC-SGPLOT/m-p/371134#M12830</link>
    <description>&lt;P&gt;I am trying to create two histograms overlayed on one plot with their respective kernels. I want the variables in the legend, but I do NOT want the curve labels in the legend. I have tried using the&amp;nbsp;KEYLEGEND feature, but when the commented out line is included, the entire legend is removed. Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SGPLOT DATA=ALLFAKE;&lt;BR /&gt;HISTOGRAM GRADE1 / SCALE=COUNT BINSTART=0 BINWIDTH=0.5 TRANSPARENCY=0.5 LEGENDLABEL="Test 1";&lt;BR /&gt;HISTOGRAM GRADE2 / SCALE=COUNT BINSTART=0 BINWIDTH=0.5 TRANSPARENCY=0.5 LEGENDLABEL="Test 2";&lt;BR /&gt;DENSITY GRADE1 / TYPE=KERNEL ;&lt;BR /&gt;DENSITY GRADE2 / TYPE=KERNEL;&lt;BR /&gt;XAXIS label="Grade on 4.0 Scale" VALUES=(0 to 4 by 0.5);&lt;BR /&gt;YAXIS LABEL="Count" VALUES=(0 to 15 by 5);&lt;BR /&gt;Title "Test 1 and Test 2 on 4.0 Scale";&lt;BR /&gt;*KEYLEGEND "Grade1" "Grade2";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13996i4C8615C7B3BDD1FC/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="graph.png" title="graph.png" /&gt;</description>
    <pubDate>Wed, 28 Jun 2017 05:02:40 GMT</pubDate>
    <dc:creator>jrheintz91</dc:creator>
    <dc:date>2017-06-28T05:02:40Z</dc:date>
    <item>
      <title>How Do I Remove The Density Curve Labels from the PROC SGPLOT legend?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Do-I-Remove-The-Density-Curve-Labels-from-the-PROC-SGPLOT/m-p/371134#M12830</link>
      <description>&lt;P&gt;I am trying to create two histograms overlayed on one plot with their respective kernels. I want the variables in the legend, but I do NOT want the curve labels in the legend. I have tried using the&amp;nbsp;KEYLEGEND feature, but when the commented out line is included, the entire legend is removed. Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SGPLOT DATA=ALLFAKE;&lt;BR /&gt;HISTOGRAM GRADE1 / SCALE=COUNT BINSTART=0 BINWIDTH=0.5 TRANSPARENCY=0.5 LEGENDLABEL="Test 1";&lt;BR /&gt;HISTOGRAM GRADE2 / SCALE=COUNT BINSTART=0 BINWIDTH=0.5 TRANSPARENCY=0.5 LEGENDLABEL="Test 2";&lt;BR /&gt;DENSITY GRADE1 / TYPE=KERNEL ;&lt;BR /&gt;DENSITY GRADE2 / TYPE=KERNEL;&lt;BR /&gt;XAXIS label="Grade on 4.0 Scale" VALUES=(0 to 4 by 0.5);&lt;BR /&gt;YAXIS LABEL="Count" VALUES=(0 to 15 by 5);&lt;BR /&gt;Title "Test 1 and Test 2 on 4.0 Scale";&lt;BR /&gt;*KEYLEGEND "Grade1" "Grade2";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13996i4C8615C7B3BDD1FC/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="graph.png" title="graph.png" /&gt;</description>
      <pubDate>Wed, 28 Jun 2017 05:02:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Do-I-Remove-The-Density-Curve-Labels-from-the-PROC-SGPLOT/m-p/371134#M12830</guid>
      <dc:creator>jrheintz91</dc:creator>
      <dc:date>2017-06-28T05:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Remove The Density Curve Labels from the PROC SGPLOT legend?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Do-I-Remove-The-Density-Curve-Labels-from-the-PROC-SGPLOT/m-p/371158#M12831</link>
      <description>&lt;P&gt;Add the NAME=option to the histogram options and specify that in the KEYLEGEND statement as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data = sashelp.class;
	histogram height / group = sex transparency = 0.5 Name = "Histogram";
	density height / type = kernel group = sex;
	keylegend "Histogram" / position = NE location = inside across = 1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Jun 2017 07:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Do-I-Remove-The-Density-Curve-Labels-from-the-PROC-SGPLOT/m-p/371158#M12831</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-06-28T07:29:46Z</dc:date>
    </item>
  </channel>
</rss>

