<?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: How do I exclude a line added to a scatter plot from the legend (keylegend exclude lineparm) in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431734#M14892</link>
    <description>&lt;P&gt;Ideally I want two columns by five rows but the grouping is effectively by decile.&amp;nbsp; When I put the across two in, I get an order like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;3&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;5&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;7&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;9&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be easier to read it like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;2&amp;nbsp; 7&lt;/P&gt;&lt;P&gt;3&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;4&amp;nbsp; 9&lt;/P&gt;&lt;P&gt;5&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not a deal breaker but it seems like something I should be able to fix (If I knew more about what I was doing!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2018 11:03:09 GMT</pubDate>
    <dc:creator>_123_</dc:creator>
    <dc:date>2018-01-29T11:03:09Z</dc:date>
    <item>
      <title>How do I exclude a line added to a scatter plot from the legend (keylegend exclude lineparm)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431199#M14884</link>
      <description>&lt;P&gt;I have a scatter plot with some added lines but I don't want to show them in the legend - I must be referencing it wrong in the keylegend exclude options.&amp;nbsp; Can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=work.data &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;noborder&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;scatter&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=var1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=var2 &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=var3; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;lineparm&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;5 &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;SLOPE&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;0;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;&lt;FONT face="Courier New" size="1"&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;lineparm&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;70 &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;SLOPE&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;&lt;FONT face="Courier New" size="1"&gt;&lt;FONT face="Courier New" size="1"&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;keylegend&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; /&lt;FONT face="Courier New" size="1"&gt;&lt;FONT face="Courier New" size="1"&gt;&lt;FONT face="Courier New" size="1"&gt;&lt;FONT face="Courier New" size="1"&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;&amp;nbsp; &amp;nbsp;across&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;&amp;nbsp; &amp;nbsp;location&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=inside &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;&amp;nbsp;&amp;nbsp; position&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=bottomright&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;&amp;nbsp;&amp;nbsp; noborder&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;&amp;nbsp;&amp;nbsp; exclude = (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"lineparm"&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 09:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431199#M14884</guid>
      <dc:creator>_123_</dc:creator>
      <dc:date>2018-01-26T09:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude a line added to a scatter plot from the legend (keylegend exclude lineparm)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431203#M14885</link>
      <description>&lt;P&gt;Do you not need to name each plot for this to work?&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=work.data noborder noautolegend
  scatter x=var1 y=var2 group=var3 name="scatter";
  lineparm x=0 y=5 slope=0 name="line1";
  lineparm x=70 y=0 slope=5 name="line2";
  keylegend "scatter" / across=2 location=inside position=bottomright noborder;
run;&lt;/PRE&gt;
&lt;P&gt;Note how I use don't mix in upper case - it makes reading code harder.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 10:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431203#M14885</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-26T10:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude a line added to a scatter plot from the legend (keylegend exclude lineparm)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431205#M14886</link>
      <description>&lt;P&gt;You can reference your scatter plot in the Keylegend statement by using the name="scatter" in the scatter options and specify keylegend "scatter" to reference only the scatter plot in the legend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I think you are missing a / in your scatter statement before your group= option&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 10:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431205#M14886</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-26T10:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude a line added to a scatter plot from the legend (keylegend exclude lineparm)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431214#M14887</link>
      <description>&lt;P&gt;Thanks - worked a charm (and there was a missing / - I removed various other options to make it simpler to paste it in and just got trigger happy with the delete key!)&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 11:23:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431214#M14887</guid>
      <dc:creator>_123_</dc:creator>
      <dc:date>2018-01-26T11:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude a line added to a scatter plot from the legend (keylegend exclude lineparm)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431258#M14888</link>
      <description>&lt;P&gt;So one other largely trivial thing to do on this plot that I can't figure out.... I have ten categories and in the legend they are listed by row then column, rather than going 1 to 5 on the left hand side and 6-10 on the right hand side.&amp;nbsp; Can't find a way to edit this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=work.data &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;noborder&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;styleattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; dataconstrastcolors=(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;colour10"&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;colour9"&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;colour8"&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;colour7"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;colour6"&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;colour5"&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;colour4"&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;colour3"&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;colour2"&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;colour1"&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;scatter&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=var1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=var2 / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;name&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"scatter"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=grouping_var &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;markerattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;size&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="1"&gt; symbol=CircleFilled);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;lineparm&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;1000&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;slope&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="1"&gt; / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;name&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"name1"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;lineattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=(colour=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"dark red"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;thickness&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="1"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;lineparm&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;1000 &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;slope&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=99&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;name&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"name2"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;lineattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=(colour=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"dark red"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;thickness&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="1"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;xaxis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;max&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=25000&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;min=200&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"Title"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;labelattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;weight&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=bold);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;yaxis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;reverse&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;min&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;max&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;20000 &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"Title"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;labelattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;weight&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=bold);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;keylegend&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="1"&gt;"scatter"&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; /&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;title&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"Title"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;titleattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;weight&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=bold)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;across&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;location&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=inside &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;position&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=bottomright&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;noborder&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;opaque&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 13:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431258#M14888</guid>
      <dc:creator>_123_</dc:creator>
      <dc:date>2018-01-26T13:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude a line added to a scatter plot from the legend (keylegend exclude lineparm)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431348#M14890</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/189392"&gt;@_123_&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;So one other largely trivial thing to do on this plot that I can't figure out.... I have ten categories and in the legend they are listed by row then column, rather than going 1 to 5 on the left hand side and 6-10 on the right hand side.&amp;nbsp; Can't find a way to edit this...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=work.data &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;noborder&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;keylegend&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="1"&gt;"scatter"&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; /&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;title&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"Title"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;titleattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;weight&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=bold)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000" size="5"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New"&gt;across&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;location&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=inside &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;position&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=bottomright&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;noborder&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;opaque&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You do not describe what you want your legend to look like but what do you think that highlighted option above does? It makes the legend have two columns. The DOWN option controls the number of rows.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 17:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431348#M14890</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-26T17:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude a line added to a scatter plot from the legend (keylegend exclude lineparm)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431734#M14892</link>
      <description>&lt;P&gt;Ideally I want two columns by five rows but the grouping is effectively by decile.&amp;nbsp; When I put the across two in, I get an order like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;3&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;5&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;7&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;9&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be easier to read it like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;2&amp;nbsp; 7&lt;/P&gt;&lt;P&gt;3&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;4&amp;nbsp; 9&lt;/P&gt;&lt;P&gt;5&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not a deal breaker but it seems like something I should be able to fix (If I knew more about what I was doing!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 11:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431734#M14892</guid>
      <dc:creator>_123_</dc:creator>
      <dc:date>2018-01-29T11:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude a line added to a scatter plot from the legend (keylegend exclude lineparm)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431735#M14893</link>
      <description>&lt;P&gt;This post among other things shows how to control the order of the legend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/04/04/consistent-ordering-graph-components/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2017/04/04/consistent-ordering-graph-components/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following step creates the attribute map:&lt;/P&gt;
&lt;DIV class="wp_syntax"&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="code"&gt;
&lt;PRE class="text"&gt;data attr(drop=n);        			
   retain ID 'a' Show 'AttrMap' ;
   input Value $ 1-9 n;     			
   LineStyle        = cats('GraphData', n); 		
   MarkerStyle      = linestyle;           	 	
   FillStyle        = linestyle;
   TextStyleElement = linestyle;
   datalines;
&amp;gt; 90 days 2
&amp;gt; 30 days 12
Current   3
;&lt;/PRE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P&gt;It reads the instream data set that contains the values of the account status, and the number of the GraphData&lt;EM&gt;n&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;style element that is used for each. Assignment statements create all of the style variables that are available in an attribute map (even those that do not get used in this particular example). The variable&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Show&lt;/STRONG&gt;='AttrMap' makes the legend appear in the order of the values in the attribute map data set. The following step shows a first pass at making the graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 11:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-exclude-a-line-added-to-a-scatter-plot-from-the-legend/m-p/431735#M14893</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-01-29T11:13:59Z</dc:date>
    </item>
  </channel>
</rss>

