<?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: proc sgplot - scatter question in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103049#M3829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very interesting...an example won't be necessary, this information is extremely useful and I will be able to take it from here.&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Oct 2013 20:46:28 GMT</pubDate>
    <dc:creator>AllSoEasy</dc:creator>
    <dc:date>2013-10-03T20:46:28Z</dc:date>
    <item>
      <title>proc sgplot - scatter question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103043#M3823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if it is possible to adjust the color of the 'markers' for each grouping:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;essentially my data looks as follows:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="199"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="75"&gt;Date&lt;/TD&gt;&lt;TD width="35"&gt;Rate&lt;/TD&gt;&lt;TD width="89"&gt;forecast_rate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;12/31/2012&lt;/TD&gt;&lt;TD align="right"&gt;1.72&lt;/TD&gt;&lt;TD class="xl66"&gt;_10YrTr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;12/31/2013&lt;/TD&gt;&lt;TD align="right"&gt;1.3&lt;/TD&gt;&lt;TD class="xl66"&gt;_10YrTr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;12/31/2014&lt;/TD&gt;&lt;TD align="right"&gt;1.8&lt;/TD&gt;&lt;TD class="xl66"&gt;_10YrTr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;12/31/2015&lt;/TD&gt;&lt;TD align="right"&gt;2.3&lt;/TD&gt;&lt;TD class="xl66"&gt;_10YrTr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;12/31/2012&lt;/TD&gt;&lt;TD align="right"&gt;0.07&lt;/TD&gt;&lt;TD class="xl66"&gt;_3MoTr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;12/31/2013&lt;/TD&gt;&lt;TD align="right"&gt;0.1&lt;/TD&gt;&lt;TD class="xl66"&gt;_3MoTr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;12/31/2014&lt;/TD&gt;&lt;TD align="right"&gt;0.1&lt;/TD&gt;&lt;TD class="xl66"&gt;_3MoTr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;12/31/2015&lt;/TD&gt;&lt;TD align="right"&gt;0.1&lt;/TD&gt;&lt;TD class="xl66"&gt;_3MoTr&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to plot it as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=endyear_givens2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; scatter x=forecast_Rate y=rate / group=date;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me almost exactly what I need: the labels "_10YrTr" and "_3MoTr" on the x-axis with the numbers values labeled on the y axis, and the legend contains dates by marker shape. What I would like that is missing though, is for each year (each marker) to have a separate color, I can't figure out how to do this - if I use the markatts(color=) option it changes all 8 markers' colors, I want to see each year group (so both _3MoTr and _10YrTr markers will be one color for 12/31/2012, and then both _3MoTr and _10YrTr markers will be a different color for 12?31/2013, etc.) - Is This possible?&lt;/P&gt;&lt;P&gt;(I've attached the current sgplot output to perhaps be more clear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 18:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103043#M3823</guid>
      <dc:creator>AllSoEasy</dc:creator>
      <dc:date>2013-10-03T18:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot - scatter question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103044#M3824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally, the GROUP option affects both the shape and the color of the marker. It appears like the style you're using is giving you this behavior. Try this before your SGPLOT statement and see what you get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html style=listing;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if that fixes the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 19:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103044#M3824</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2013-10-03T19:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot - scatter question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103045#M3825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your helpful answer! That gets me halfway there -- They are in different color now which is good, but I still have no way of setting &lt;EM&gt;which&lt;/EM&gt; group gets which color -- I want to manually set the color because I want each point to correspond to other graphs representing data by similar groupings, as it draws attention to a relationship that is bein portrayed in a presentation. Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 20:13:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103045#M3825</guid>
      <dc:creator>AllSoEasy</dc:creator>
      <dc:date>2013-10-03T20:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot - scatter question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103046#M3826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of SAS do you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 20:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103046#M3826</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2013-10-03T20:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot - scatter question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103047#M3827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;9.2 -- Sorry I didn't mention this initially.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 20:16:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103047#M3827</guid>
      <dc:creator>AllSoEasy</dc:creator>
      <dc:date>2013-10-03T20:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot - scatter question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103048#M3828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAS 9.3, this would be trivial. In that release we introduced "attribute map" data sets, where you can associate group values with visual attributes. You can use that data set with SGPLOT, SGPANEL, or SGSCATTER to do exactly what you describe above. To simulate this feature in SAS 9.2, you will need to use a GTL template, and use the INDEX option on the SCATTERPLOT statement to associate a style index to your group values. Then, create a column in your data that you will assign the values 1-N based on your group value. Use this column on the INDEX option in your template. If you need, I can put together an example of this. Just let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 20:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103048#M3828</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2013-10-03T20:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot - scatter question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103049#M3829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very interesting...an example won't be necessary, this information is extremely useful and I will be able to take it from here.&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 20:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-scatter-question/m-p/103049#M3829</guid>
      <dc:creator>AllSoEasy</dc:creator>
      <dc:date>2013-10-03T20:46:28Z</dc:date>
    </item>
  </channel>
</rss>

