<?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: Putting arrows on a scatter graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Putting-arrows-on-a-scatter-graph/m-p/204630#M7599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can.&amp;nbsp; XOrigin and YOrigin can be other columns in the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need 4 columns, two for (x, y) and two for (xprev, yprev).&amp;nbsp; Then set your data so xprev is same as x for the next set of points.&amp;nbsp; For first point, they will be missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vector x=x y=y / xorigin=xprev yorigin=yprev;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 15:32:46 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2015-08-21T15:32:46Z</dc:date>
    <item>
      <title>Putting arrows on a scatter graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Putting-arrows-on-a-scatter-graph/m-p/204627#M7596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to put arrows connecting points on a scatter plot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my scatter plot consists of 4 point can I show a line with an arrow connecting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;point1-point2&lt;/P&gt;&lt;P&gt;point1-point4&lt;/P&gt;&lt;P&gt;and so on..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 14:58:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Putting-arrows-on-a-scatter-graph/m-p/204627#M7596</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-08-21T14:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Putting arrows on a scatter graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Putting-arrows-on-a-scatter-graph/m-p/204628#M7597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, use a VECTOR plot overlay.&amp;nbsp; Or use SERIES or SPLINE with SAS 9.4M3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 15:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Putting-arrows-on-a-scatter-graph/m-p/204628#M7597</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-08-21T15:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Putting arrows on a scatter graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Putting-arrows-on-a-scatter-graph/m-p/204629#M7598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sanjay. I'm not sure if this will work though. It seems you can only have arrows pointing from the origin or some other point to every other point in the scatter plot. I want an arrow connecting each consecutive point in a particular sequence. I want to be able to specify a "route" around the scatter plot using arrows. Can this be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data obs;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; do i= 1 to 8;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x= round(100* ranuni(123),1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y= round(100* ranuni(789),1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;title "Scatter Chart";&lt;BR /&gt;proc sgplot data=obs;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vector x=x y=y&lt;BR /&gt;&amp;nbsp;&amp;nbsp; / yorigin=32 xorigin=75&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datalabel;&lt;BR /&gt;run;&lt;BR /&gt;title;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 15:26:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Putting-arrows-on-a-scatter-graph/m-p/204629#M7598</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-08-21T15:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Putting arrows on a scatter graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Putting-arrows-on-a-scatter-graph/m-p/204630#M7599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can.&amp;nbsp; XOrigin and YOrigin can be other columns in the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need 4 columns, two for (x, y) and two for (xprev, yprev).&amp;nbsp; Then set your data so xprev is same as x for the next set of points.&amp;nbsp; For first point, they will be missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vector x=x y=y / xorigin=xprev yorigin=yprev;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 15:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Putting-arrows-on-a-scatter-graph/m-p/204630#M7599</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-08-21T15:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Putting arrows on a scatter graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Putting-arrows-on-a-scatter-graph/m-p/226302#M8191</link>
      <description>&lt;P&gt;Here's how to do it with traditonal SAS/Graph Proc Gplot and Annotate ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data obs;&lt;BR /&gt;do i= 1 to 8;&lt;BR /&gt;x= round(100* ranuni(123),1);&lt;BR /&gt;y= round(100* ranuni(789),1);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data anno_arrows; set obs;&lt;BR /&gt;length function $8;&lt;BR /&gt;xsys='2'; ysys='2'; when='a';&lt;BR /&gt;if _n_=1 then function='move';&lt;BR /&gt;else function='arrow'; style='filled'; angle=30; line=1.8; color='red';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;symbol1 value=circle color=blue height=1.0 interpol=none;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc gplot data=obs anno=anno_arrows;&lt;BR /&gt;plot y*x;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/208iA92F7C9CBCD9E125/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="gplot9.png" title="gplot9.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 14:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Putting-arrows-on-a-scatter-graph/m-p/226302#M8191</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2015-09-18T14:47:53Z</dc:date>
    </item>
  </channel>
</rss>

