<?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 legend position in GTL/Proc template in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/legend-position-in-GTL-Proc-template/m-p/193277#M7137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a two fold question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I Would like to replace Y axis values with legend is it possible to do this SAS GTL&amp;nbsp; or any other SAS procedure? Alternatively how to place circle filled next to the y axis values. As an example, please see below for the graph, I would like to place blue filled circle next to Philip, and red filled circle next to Ronald. &lt;/P&gt;&lt;P&gt;2. How to manually specify the colors for the filled circle ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please SAS code for reproduciblity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="9433" alt="SGRender17.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9433_SGRender17.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; proc template;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define statgraph dotplot;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; begingraph;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; entrytitle "Weight";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; layout overlay/yaxisopts = (type=discrete griddisplay=on reverse=true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; scatterplot x = weight y=name/markerattrs=(symbol=circlefilled) name='dot' group = name&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; legendlabel = 'Weight';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; discretelegend 'dot'/halign = left ORDER=rowmajor across=1 BORDER = FALSE pad=(top=5 bottom=5);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; endlayout;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; endgraph;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc sort data = sashelp.class out = class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; by&amp;nbsp; descending weight;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc sgrender&amp;nbsp; data = class template = dotplot;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 20:46:05 GMT</pubDate>
    <dc:creator>Forecaster</dc:creator>
    <dc:date>2015-03-03T20:46:05Z</dc:date>
    <item>
      <title>legend position in GTL/Proc template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/legend-position-in-GTL-Proc-template/m-p/193277#M7137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a two fold question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I Would like to replace Y axis values with legend is it possible to do this SAS GTL&amp;nbsp; or any other SAS procedure? Alternatively how to place circle filled next to the y axis values. As an example, please see below for the graph, I would like to place blue filled circle next to Philip, and red filled circle next to Ronald. &lt;/P&gt;&lt;P&gt;2. How to manually specify the colors for the filled circle ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please SAS code for reproduciblity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="9433" alt="SGRender17.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9433_SGRender17.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; proc template;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define statgraph dotplot;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; begingraph;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; entrytitle "Weight";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; layout overlay/yaxisopts = (type=discrete griddisplay=on reverse=true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; scatterplot x = weight y=name/markerattrs=(symbol=circlefilled) name='dot' group = name&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; legendlabel = 'Weight';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; discretelegend 'dot'/halign = left ORDER=rowmajor across=1 BORDER = FALSE pad=(top=5 bottom=5);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; endlayout;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; endgraph;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc sort data = sashelp.class out = class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; by&amp;nbsp; descending weight;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc sgrender&amp;nbsp; data = class template = dotplot;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 20:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/legend-position-in-GTL-Proc-template/m-p/193277#M7137</guid>
      <dc:creator>Forecaster</dc:creator>
      <dc:date>2015-03-03T20:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: legend position in GTL/Proc template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/legend-position-in-GTL-Proc-template/m-p/193278#M7138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creating a unique, distinct colors for this many category values would be extremely difficult because the color perception of people can vary widely. It appears that your goal is to improve the association of the dot to the category value. I'm not sure of your SAS version, but consider trying color bands to help with the association:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=sashelp.class;&lt;/P&gt;&lt;P&gt;yaxis colorbands=odd;&lt;/P&gt;&lt;P&gt;dot name / response=weight categoryorder=respdesc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="colorband.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9435_colorband.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 21:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/legend-position-in-GTL-Proc-template/m-p/193278#M7138</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-03-03T21:32:54Z</dc:date>
    </item>
  </channel>
</rss>

