<?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: Problem with legend in scatterplot in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-with-legend-in-scatterplot/m-p/483586#M31353</link>
    <description>&lt;P&gt;Use the &lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0xmbppzx71smbn1203aaif96z86.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=da" target="_self"&gt;KEYLEGEND Statement&lt;/A&gt; and alter the POSITION= and LOCATION= Options to put the legend where you want it&lt;/P&gt;</description>
    <pubDate>Thu, 02 Aug 2018 20:38:09 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-08-02T20:38:09Z</dc:date>
    <item>
      <title>Problem with legend in scatterplot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-with-legend-in-scatterplot/m-p/483465#M31348</link>
      <description>&lt;P&gt;Hi, I'm using EG 7.12 and I have a problem when I use markerattrs. (NBRSUCAGE is the variable with the label names&amp;nbsp;for the graph legend)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using this code, the legend appears:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=stats.cuadro; 
scatter x=var16_17 y=ING17 /group=NBRSUCAGE  name="ag";
discretelegend "ag" / title="Agencias";
title "Variación 2016- 2017 vs Ingresos"; 
run;
&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph_legend.jpg" style="width: 410px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22179i708F28B2797A576E/image-dimensions/410x329?v=v2" width="410" height="329" role="button" title="graph_legend.jpg" alt="graph_legend.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, when I agree the markeratrrbs option, the legend disappears:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=stats.cuadro; 
scatter x=var16_17 y=ING17 /group=NBRSUCAGE markerattrs=(symbol=circlefilled size=3pct) name="ag";
discretelegend "ag" / title="Agencias";
title "Variación 2016- 2017 vs Ingresos"; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph_error.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22180iFC7BB127690698EC/image-dimensions/400x325?v=v2" width="400" height="325" role="button" title="graph_error.jpg" alt="graph_error.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How could I maintain the changes without losing the legend?&lt;/P&gt;
&lt;P&gt;Also, It would be a plus if there is any way to have different symbols for markers without&amp;nbsp;coding&amp;nbsp;a previous template. Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 16:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-with-legend-in-scatterplot/m-p/483465#M31348</guid>
      <dc:creator>fri0</dc:creator>
      <dc:date>2018-08-02T16:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with legend in scatterplot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-with-legend-in-scatterplot/m-p/483552#M31350</link>
      <description>&lt;P&gt;1: What are you trying to accomplish with the DISCRETELEGEND Statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2: You can use&amp;nbsp;&lt;SPAN&gt;different symbols for markers without&amp;nbsp;coding&amp;nbsp;a previous template by setting&amp;nbsp;the ATTRPRIORITY=NONE in the &lt;A href="https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_odsgraph_sect024.htm" target="_self"&gt;ODS GRAPHICS Statement&lt;/A&gt;&amp;nbsp;and use the &lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p1dt33l6a6epk6n1chtynsgsjgit.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=da" target="_self"&gt;STYLEATTRS Statement&lt;/A&gt; as in the following small example&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / attrpriority=none;
proc sgplot data=sashelp.iris noautolegend;
   styleattrs datasymbols=(circlefilled squarefilled starfilled) ;
   scatter x=sepallength y=sepalwidth / group=species;
   keylegend / location=inside position=NE across=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 19:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-with-legend-in-scatterplot/m-p/483552#M31350</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-08-02T19:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with legend in scatterplot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-with-legend-in-scatterplot/m-p/483561#M31351</link>
      <description>Hi!&lt;BR /&gt;1. Justo to show the legend next to the graph, I don't want to have label over the markers. Is there a better way?.&lt;BR /&gt;2. Ok, It's needed a previous template. Thanks!</description>
      <pubDate>Thu, 02 Aug 2018 19:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-with-legend-in-scatterplot/m-p/483561#M31351</guid>
      <dc:creator>fri0</dc:creator>
      <dc:date>2018-08-02T19:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with legend in scatterplot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-with-legend-in-scatterplot/m-p/483586#M31353</link>
      <description>&lt;P&gt;Use the &lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0xmbppzx71smbn1203aaif96z86.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=da" target="_self"&gt;KEYLEGEND Statement&lt;/A&gt; and alter the POSITION= and LOCATION= Options to put the legend where you want it&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 20:38:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-with-legend-in-scatterplot/m-p/483586#M31353</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-08-02T20:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with legend in scatterplot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-with-legend-in-scatterplot/m-p/483608#M31354</link>
      <description>&lt;P&gt;Hi draycut, I checked the keylegend statement, got better output, but I have the same problem when I included the markerattrs option. After many changes, I realize that the problem appears when you use pct as measure for the size marker, I changed it to mm and the legend appears. Thanks!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 22:35:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-with-legend-in-scatterplot/m-p/483608#M31354</guid>
      <dc:creator>fri0</dc:creator>
      <dc:date>2018-08-02T22:35:47Z</dc:date>
    </item>
  </channel>
</rss>

