<?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 to merge keylegends in SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-merge-keylegends-in-SGPLOT/m-p/786159#M22432</link>
    <description>&lt;P&gt;Trying to get a a the symbols (scatter) and line (series) legends be merge together but can not get the group label on. Any ideas on how to solve this in a dynamic way?&amp;nbsp;&lt;BR /&gt;So in the below simple example I want to have F and M included in the legend label.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc sort data=sashelp.class out=class;
by age;
proc sgplot data=class;
scatter x=age y=height / group=sex;
series x=age y=height /  group=sex;
legenditem type=markerline name="symbol"/ lineattrs=GraphData1 markerattrs=GraphData1; 
legenditem type=markerline name="line"  / lineattrs=GraphData2 markerattrs=GraphData2; 
keylegend  "symbol" "line" /title="Sex";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="merged keylegend.jpg" style="width: 563px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66775iE6DDBE1F07A1549A/image-size/large?v=v2&amp;amp;px=999" role="button" title="merged keylegend.jpg" alt="merged keylegend.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 12:55:55 GMT</pubDate>
    <dc:creator>Claus_Stenberg</dc:creator>
    <dc:date>2021-12-15T12:55:55Z</dc:date>
    <item>
      <title>How to merge keylegends in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-merge-keylegends-in-SGPLOT/m-p/786159#M22432</link>
      <description>&lt;P&gt;Trying to get a a the symbols (scatter) and line (series) legends be merge together but can not get the group label on. Any ideas on how to solve this in a dynamic way?&amp;nbsp;&lt;BR /&gt;So in the below simple example I want to have F and M included in the legend label.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc sort data=sashelp.class out=class;
by age;
proc sgplot data=class;
scatter x=age y=height / group=sex;
series x=age y=height /  group=sex;
legenditem type=markerline name="symbol"/ lineattrs=GraphData1 markerattrs=GraphData1; 
legenditem type=markerline name="line"  / lineattrs=GraphData2 markerattrs=GraphData2; 
keylegend  "symbol" "line" /title="Sex";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="merged keylegend.jpg" style="width: 563px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66775iE6DDBE1F07A1549A/image-size/large?v=v2&amp;amp;px=999" role="button" title="merged keylegend.jpg" alt="merged keylegend.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 12:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-merge-keylegends-in-SGPLOT/m-p/786159#M22432</guid>
      <dc:creator>Claus_Stenberg</dc:creator>
      <dc:date>2021-12-15T12:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge keylegends in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-merge-keylegends-in-SGPLOT/m-p/786161#M22433</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
by age;
proc sgplot data=class;
scatter x=age y=height / group=sex;
series x=age y=height /  group=sex;
legenditem type=markerline name="symbol"/label='Female' lineattrs=GraphData1 markerattrs=GraphData1; 
legenditem type=markerline name="line"  /label='Male'  lineattrs=GraphData2 markerattrs=GraphData2; 
keylegend  "symbol" "line" /title="Sex";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Dec 2021 13:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-merge-keylegends-in-SGPLOT/m-p/786161#M22433</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-12-15T13:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge keylegends in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-merge-keylegends-in-SGPLOT/m-p/786162#M22434</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
by age;
proc sgplot data=class;
series x=age y=height /  group=sex markers;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Dec 2021 13:02:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-merge-keylegends-in-SGPLOT/m-p/786162#M22434</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-12-15T13:02:33Z</dc:date>
    </item>
  </channel>
</rss>

