<?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: Multi-directional arrows on a graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Multi-directional-arrows-on-a-graph/m-p/269425#M9641</link>
    <description>&lt;P&gt;I think your approach is the best.&amp;nbsp; If you want to draw the vector from (x1, y1) to (x2, y2), define the midpoint as&lt;/P&gt;
&lt;P&gt;m = ( (x1+x2)/2, (y1+y2)/2 ). Then&lt;/P&gt;
&lt;P&gt;1. Draw vector from m to (x2, y2). Use the NOARROWHEADS option to suppress the arrow head.&lt;/P&gt;
&lt;P&gt;2. In a separate VECTOR statement, draw vector from (x1, y1) to m. Put an arrow head at the end (this is the default).&lt;/P&gt;
&lt;P&gt;3. Use the SCATTER statement to overlay the dots at (x1, y1) and (x2, y2).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2016 13:33:03 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-05-10T13:33:03Z</dc:date>
    <item>
      <title>Multi-directional arrows on a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multi-directional-arrows-on-a-graph/m-p/269413#M9639</link>
      <description>&lt;P&gt;Hello :-),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to replicate the following image below using SAS 9.4, and I was wondering if there were any easier ways to plot the directional arrows? I have thought about using the vector statement because with that I can specify the start and end of the line, and draw the arrow (in the middle) which will be in the right direction, but I was wondering if I could use any other methods please?&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/3109iC38D53824F2054C8/image-size/original?v=v2&amp;amp;px=-1" alt="directional_arrows.png" title="directional_arrows.png" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;Kriss&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 13:09:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multi-directional-arrows-on-a-graph/m-p/269413#M9639</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-05-10T13:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-directional arrows on a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multi-directional-arrows-on-a-graph/m-p/269425#M9641</link>
      <description>&lt;P&gt;I think your approach is the best.&amp;nbsp; If you want to draw the vector from (x1, y1) to (x2, y2), define the midpoint as&lt;/P&gt;
&lt;P&gt;m = ( (x1+x2)/2, (y1+y2)/2 ). Then&lt;/P&gt;
&lt;P&gt;1. Draw vector from m to (x2, y2). Use the NOARROWHEADS option to suppress the arrow head.&lt;/P&gt;
&lt;P&gt;2. In a separate VECTOR statement, draw vector from (x1, y1) to m. Put an arrow head at the end (this is the default).&lt;/P&gt;
&lt;P&gt;3. Use the SCATTER statement to overlay the dots at (x1, y1) and (x2, y2).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 13:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multi-directional-arrows-on-a-graph/m-p/269425#M9641</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-10T13:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-directional arrows on a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multi-directional-arrows-on-a-graph/m-p/269427#M9642</link>
      <description>&lt;P&gt;Great! Thank you for this Rick! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 13:40:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multi-directional-arrows-on-a-graph/m-p/269427#M9642</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-05-10T13:40:11Z</dc:date>
    </item>
  </channel>
</rss>

