<?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 Legends SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Legends-SGPLOT/m-p/407777#M13941</link>
    <description>&lt;P&gt;I have the following code which works okay except I can't seem to get the values I want in the legend.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  
ods pdf file='/folders/myfolders/Cmax_con/peak2distr.pdf/';  
 ods graphics on /width=4 in;  
title "Cmax observed vs Cmax calculated";
proc sgplot data=peak2 noautolegend ;
  density y / type=kernel lineattrs=(color=red pattern=2);  /* optional */
   density dv / type=kernel lineattrs=GraphData2;  /* optional */   
  keylegend /location=inside  position=topright   ;                                                          
             
        
  xaxis label="Concentration (ng/ml)" min=0;
  
  
  
run; 
ods pdf close;           
               &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The legend has kernel for the dotted and solid lines.&amp;nbsp; How can I insert my variables from my density plots Y and DV?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2017 18:48:04 GMT</pubDate>
    <dc:creator>jacksonan123</dc:creator>
    <dc:date>2017-10-26T18:48:04Z</dc:date>
    <item>
      <title>Legends SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legends-SGPLOT/m-p/407777#M13941</link>
      <description>&lt;P&gt;I have the following code which works okay except I can't seem to get the values I want in the legend.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  
ods pdf file='/folders/myfolders/Cmax_con/peak2distr.pdf/';  
 ods graphics on /width=4 in;  
title "Cmax observed vs Cmax calculated";
proc sgplot data=peak2 noautolegend ;
  density y / type=kernel lineattrs=(color=red pattern=2);  /* optional */
   density dv / type=kernel lineattrs=GraphData2;  /* optional */   
  keylegend /location=inside  position=topright   ;                                                          
             
        
  xaxis label="Concentration (ng/ml)" min=0;
  
  
  
run; 
ods pdf close;           
               &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The legend has kernel for the dotted and solid lines.&amp;nbsp; How can I insert my variables from my density plots Y and DV?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 18:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legends-SGPLOT/m-p/407777#M13941</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2017-10-26T18:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Legends SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legends-SGPLOT/m-p/407789#M13942</link>
      <description>&lt;P&gt;Use the LEGENDLABEL option on both statements:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;density y / type=kernel lineattrs=(color=red pattern=2) legendlabel="y";  /* optional */
density dv / type=kernel lineattrs=GraphData2 legendlabel="dv";  /* optional */   &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 19:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legends-SGPLOT/m-p/407789#M13942</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-10-26T19:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Legends SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legends-SGPLOT/m-p/407795#M13943</link>
      <description>&lt;P&gt;So simple, but the more I read the blogs it seemed so complicated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 19:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legends-SGPLOT/m-p/407795#M13943</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2017-10-26T19:11:12Z</dc:date>
    </item>
  </channel>
</rss>

