<?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: Overlay plot with different number of points in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181211#M6672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If circles are not important, you can use XERRORUPPER/LOWER and YERRORUPPER/LOWER to show the +/-2.5 and +/-5.0 limits. You should need only two scatter overlays to show these limits, the first scatter can show the real point and the +/- 2.5 limits. The code will look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=somedata nocycleattrs;&lt;/P&gt;&lt;P&gt;scatter x=x y=y / xerrorupper=xulimit50 xerrorlower=xllimit50 yerrorupper=yulimit50 yerrorlower=yllimit50 markerattrs=(size=0);&lt;/P&gt;&lt;P&gt;scatter x=x y=y / xerrorupper=xulimit25 xerrorlower=xllimit25 yerrorupper=yulimit25 yerrorlower=yllimit25;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 20:08:21 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2014-06-02T20:08:21Z</dc:date>
    <item>
      <title>Overlay plot with different number of points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181206#M6667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scatter plot upon which I must overlay three other items:&lt;/P&gt;&lt;P&gt;1. Centroid value of X and Y (one value with marker)&lt;/P&gt;&lt;P&gt;2. A circle +/- 2.5 units of the centroid&lt;/P&gt;&lt;P&gt;3. A circle of +/-5.0 units of the centroid&lt;/P&gt;&lt;P&gt;What is the most effective way of doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181206#M6667</guid>
      <dc:creator>Doug</dc:creator>
      <dc:date>2014-06-02T17:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay plot with different number of points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181207#M6668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which procedure do you plan on using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on procedure and version of SAS the second 2 are probably easiest with an annotate data set as you specify a a coordinate and radius for a circle. Which would require about 3 lines of code. Look at the %Circle macro in the annotate facility.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 18:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181207#M6668</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-06-02T18:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay plot with different number of points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181208#M6669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I originally planned to use SGPLOT&amp;nbsp; - the software version I have is 9.2 TS2M3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 19:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181208#M6669</guid>
      <dc:creator>Doug</dc:creator>
      <dc:date>2014-06-02T19:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay plot with different number of points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181209#M6670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GTL might be a good option if there's an easy way to draw a circle in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 19:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181209#M6670</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-02T19:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay plot with different number of points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181210#M6671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simplest I can think of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data junk; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x = 5; y=5; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=junk; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scatter x=x y=y /markerattrs=(symbol=circlefilled) name='yes'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scatter x=x y=y /markerattrs=(symbol=circle size=25mm) name='no'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scatter x=x y=y /markerattrs=(symbol=circle size=50mm) name='no2'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keylegend 'yes' /title='Legend'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The size and units would likely change depending on the size of your final display and you may want to play with axis defintions to make it prettier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 19:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181210#M6671</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-06-02T19:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay plot with different number of points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181211#M6672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If circles are not important, you can use XERRORUPPER/LOWER and YERRORUPPER/LOWER to show the +/-2.5 and +/-5.0 limits. You should need only two scatter overlays to show these limits, the first scatter can show the real point and the +/- 2.5 limits. The code will look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=somedata nocycleattrs;&lt;/P&gt;&lt;P&gt;scatter x=x y=y / xerrorupper=xulimit50 xerrorlower=xllimit50 yerrorupper=yulimit50 yerrorlower=yllimit50 markerattrs=(size=0);&lt;/P&gt;&lt;P&gt;scatter x=x y=y / xerrorupper=xulimit25 xerrorlower=xllimit25 yerrorupper=yulimit25 yerrorlower=yllimit25;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 20:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181211#M6672</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2014-06-02T20:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay plot with different number of points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181212#M6673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Circles are kind of important since they are the companion to tables which show the actual counts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 20:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181212#M6673</guid>
      <dc:creator>Doug</dc:creator>
      <dc:date>2014-06-02T20:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay plot with different number of points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181213#M6674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still say GTL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the docs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatug/63302/HTML/default/viewer.htm#p0mqg0vzarxn7mn1f3v19evzhkc4.htm" title="http://support.sas.com/documentation/cdl/en/grstatug/63302/HTML/default/viewer.htm#p0mqg0vzarxn7mn1f3v19evzhkc4.htm"&gt;SAS(R) 9.3 Graph Template Language: User's Guide&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 20:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181213#M6674</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-02T20:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay plot with different number of points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181214#M6675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About how many scatter points are involved?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 21:04:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181214#M6675</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2014-06-02T21:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay plot with different number of points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181215#M6676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably about 50 per plot&amp;nbsp; - I don't have SAS 9.3 will the 9.3 GTL still work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 21:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181215#M6676</guid>
      <dc:creator>Doug</dc:creator>
      <dc:date>2014-06-02T21:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay plot with different number of points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181216#M6677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or perhaps proc gplot with a bubble plot with multiple requests overlayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 21:37:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181216#M6677</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-06-02T21:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay plot with different number of points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181217#M6678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're going to use the ODS Graphics systems to do this at SAS 9.2, the only way that comes to mind (warning: this is brute force) is to use ELLIPSEPARM statements in GTL. You would have to write a macro loop to generate an ELLIPSEPARM statement for each circle needed in the plot. Here is some pseudo-code for the idea:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;define statgraph myscatter;&lt;/P&gt;&lt;P&gt;begingraph;&lt;/P&gt;&lt;P&gt;layout overlay;&lt;/P&gt;&lt;P&gt;&amp;nbsp; scatterplot x=x y=y;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %do %p=1 %to numberOfCircles;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ellipseparm semimajor=%unit semiminor=%unit slope=0 xorigin=%x yorigin=%y;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;endlayout;&lt;/P&gt;&lt;P&gt;endgraph;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgrender data=somedata template=myscatter; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 21:53:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Overlay-plot-with-different-number-of-points/m-p/181217#M6678</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2014-06-02T21:53:06Z</dc:date>
    </item>
  </channel>
</rss>

