<?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 Applying Arrow Tips to SGPLOT Lines and Axes in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Applying-Arrow-Tips-to-SGPLOT-Lines-and-Axes/m-p/843289#M23283</link>
    <description>&lt;P&gt;Excel lines (blue) and axes (gray) can easily introduce arrow tips as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="versionexcel.png" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77103i3256F3B5A2357397/image-size/large?v=v2&amp;amp;px=999" role="button" title="versionexcel.png" alt="versionexcel.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to do this in SGPLOT but couldn't find LINEATTRS or something for these arrow tips.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="versionsas.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77104iEAC91AFA829E4AAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="versionsas.png" alt="versionsas.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Are the arrow tips above also available for SGPLOT SERIES and axes? Here is a sample snippet.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data work;
do x=1 to 10;
y+rannor(1);
output;
end;
run;

ods results=off;
ods listing gpath='!userprofile\desktop';
ods graphics/reset noborder imagename='versionsas';

proc sgplot;
series x=x y=y;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 07:12:43 GMT</pubDate>
    <dc:creator>Junyong</dc:creator>
    <dc:date>2022-11-09T07:12:43Z</dc:date>
    <item>
      <title>Applying Arrow Tips to SGPLOT Lines and Axes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Applying-Arrow-Tips-to-SGPLOT-Lines-and-Axes/m-p/843289#M23283</link>
      <description>&lt;P&gt;Excel lines (blue) and axes (gray) can easily introduce arrow tips as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="versionexcel.png" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77103i3256F3B5A2357397/image-size/large?v=v2&amp;amp;px=999" role="button" title="versionexcel.png" alt="versionexcel.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to do this in SGPLOT but couldn't find LINEATTRS or something for these arrow tips.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="versionsas.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77104iEAC91AFA829E4AAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="versionsas.png" alt="versionsas.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Are the arrow tips above also available for SGPLOT SERIES and axes? Here is a sample snippet.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data work;
do x=1 to 10;
y+rannor(1);
output;
end;
run;

ods results=off;
ods listing gpath='!userprofile\desktop';
ods graphics/reset noborder imagename='versionsas';

proc sgplot;
series x=x y=y;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 07:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Applying-Arrow-Tips-to-SGPLOT-Lines-and-Axes/m-p/843289#M23283</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2022-11-09T07:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Applying Arrow Tips to SGPLOT Lines and Axes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Applying-Arrow-Tips-to-SGPLOT-Lines-and-Axes/m-p/843330#M23284</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work;
do x=1 to 10;
y+rannor(1);
output;
end;
run;
data want;
 set work ;
if _n_=1 then do;_y=2;_x=11;end;
run;


proc sgplot noautolegend;
series x=x y=y/ARROWHEADPOS=end  ARROWHEADSHAPE=filled ;
scatter x=_x y=_y/markerattrs=(symbol=trianglerightfilled color=grey);
refline 2/axis=y ;
yaxis grid ;
xaxis offsetmax=0.01;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1667993976688.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77109i7484A340D94EC396/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1667993976688.png" alt="Ksharp_0-1667993976688.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 11:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Applying-Arrow-Tips-to-SGPLOT-Lines-and-Axes/m-p/843330#M23284</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-11-09T11:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Applying Arrow Tips to SGPLOT Lines and Axes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Applying-Arrow-Tips-to-SGPLOT-Lines-and-Axes/m-p/843428#M23288</link>
      <description>&lt;P&gt;Does &lt;CODE&gt;xaxis&lt;/CODE&gt; or &lt;CODE&gt;yaxis&lt;/CODE&gt; have something similar to &lt;CODE&gt;arrowheadpos&lt;/CODE&gt; for &lt;CODE&gt;series&lt;/CODE&gt;? I want to apply the arrow tips for axes &lt;EM&gt;per se&lt;/EM&gt; as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arrow-tipped.png" style="width: 384px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77132iFF74A6FC2EDB6D8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="arrow-tipped.png" alt="arrow-tipped.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help again.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 17:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Applying-Arrow-Tips-to-SGPLOT-Lines-and-Axes/m-p/843428#M23288</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2022-11-09T17:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Applying Arrow Tips to SGPLOT Lines and Axes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Applying-Arrow-Tips-to-SGPLOT-Lines-and-Axes/m-p/843455#M23290</link>
      <description>&lt;P&gt;SG procs do not provide arrows on axes. But you could use SG annotation to achieve this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
call streaminit(86585);
do x=1 to 10;
    y+rannor(1);
    output;
    end;
run;

data annoset;
function = "ARROW"; shape = "FILLED"; drawspace = "WALLPERCENT"; 
y1 = 0; y2 = 0; x1 = 0; x2 = 100; output;
function = "ARROW"; shape = "FILLED"; drawspace = "WALLPERCENT"; 
y1 = 0; y2 = 100; x1 = 0; x2 = 0; output;
run;

proc sgplot data=have noautolegend sganno=annoset;
series x=x y=y/ARROWHEADPOS=both  ARROWHEADSHAPE=filled ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PGStats_0-1668023287931.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77134iD16386C2F7CA3757/image-size/large?v=v2&amp;amp;px=999" role="button" title="PGStats_0-1668023287931.png" alt="PGStats_0-1668023287931.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 19:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Applying-Arrow-Tips-to-SGPLOT-Lines-and-Axes/m-p/843455#M23290</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2022-11-09T19:49:02Z</dc:date>
    </item>
  </channel>
</rss>

