<?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: Arrow is not in the right place using HIGHCAP in SGPLOT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Arrow-is-not-in-the-right-place-using-HIGHCAP-in-SGPLOT/m-p/882985#M348895</link>
    <description>&lt;P&gt;This is an exact duplicate of you other post. I'm going to lock this one and leave the other open so that the answers will all be in one place. &lt;A href="https://communities.sas.com/t5/SAS-Programming/Arrow-in-not-at-the-end-of-the-bar-with-SPGLOT-and-HIGHCAP/m-p/881889" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/Arrow-in-not-at-the-end-of-the-bar-with-SPGLOT-and-HIGHCAP/m-p/881889&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 18:10:39 GMT</pubDate>
    <dc:creator>SASJedi</dc:creator>
    <dc:date>2023-06-29T18:10:39Z</dc:date>
    <item>
      <title>Arrow is not in the right place using HIGHCAP in SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Arrow-is-not-in-the-right-place-using-HIGHCAP-in-SGPLOT/m-p/881873#M348453</link>
      <description>&lt;P&gt;Hello all!&amp;nbsp;&lt;/P&gt;&lt;P&gt;would very much appreciate your help with SGPLOT and HIGHCAP statement.&lt;/P&gt;&lt;P&gt;I have monthly usage data for 2 patients:&lt;/P&gt;&lt;DIV&gt;data usage;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;infile datalines ;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;input&amp;nbsp; ptid:$8. Usage:$10. month:32. year:32. start:32. end:32. highcap:$20. idname $8.;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;datalines;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;1 &amp;gt;=75% 8 2018 0 1 null 1&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;1 &amp;gt;=75% 9 2018 1 2 null blank&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;1 &amp;gt;=75% 10 2018 2 3 null blank&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;1 &amp;gt;=75% 11 2018 3 4 null blank&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;1 &amp;gt;=75% 12 2018 4 5 null blank&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;2 &amp;gt;=75% 7 2018 0 9 FilledArrow 2&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;2 &amp;gt;=75% 8 2018 1 9 FilledArrow blank&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;2 &amp;gt;=75% 9 2018 2 9 FilledArrow blank&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;2 &amp;gt;=75% 10 2018 3 9 FilledArrow blank&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;2 &amp;gt;=75% 11 2018 4 9 FilledArrow blank&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;2 50%-75% 12 2018 5 9 FilledArrow blank&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;2 50%-75% 1 2019 6 9 FilledArrow blank&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;2 &amp;gt;=75% 2 2019 7 9 FilledArrow blank&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;2 &amp;gt;=75% 3 2019 8 9 FilledArrow blank&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;data usage;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;set usage;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if highcap='null' then highcap='';&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if idname='blank' then idname='';&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a horizontal plot using SGPLOT, with colors marking the usage categories (red=low, orange=medium/low, yellow=medium, green=high) and I would like an arrow to mark the ongoing patient. I use the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data=usage dattrmap=attrmap ;&lt;BR /&gt;highlow y=Ptid low=start high=end / type=bar group=Usage&lt;BR /&gt;lineattrs=(color=black pattern=solid) barwidth=1&lt;BR /&gt;lowlabel=idname highcap=highcap attrid=Usage_Rang labelattrs=(color=black size=8) ;&lt;BR /&gt;keylegend / title='Usage ' valueattrs=(size=8pt) titleattrs=(size=8pt);&lt;BR /&gt;scatter y=Ptid x=start / markerattrs=(size=0) ;&lt;BR /&gt;xaxis grid label = 'Treatment duration (Months)' offsetmax=0.02 values=(0 to 36 by 3);&lt;BR /&gt;yaxis grid display=(noticks novalues nolabel) discreteorder=data;&lt;/P&gt;&lt;P&gt;footnote1 j=c HEIGHT=10pt FONT='Arial' '"Arrow-heads" denote Patient On Therapy';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but in output it seems like the arrow is at the beginning of the line, not at the end of it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dkosovsky_0-1687431344146.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85236i16A007257C7774C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dkosovsky_0-1687431344146.png" alt="dkosovsky_0-1687431344146.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any thoughts about why is this happening and how to fix it?&lt;/P&gt;&lt;P&gt;any advice would be highly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 10:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Arrow-is-not-in-the-right-place-using-HIGHCAP-in-SGPLOT/m-p/881873#M348453</guid>
      <dc:creator>dkosovsky</dc:creator>
      <dc:date>2023-06-22T10:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arrow is not in the right place using HIGHCAP in SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Arrow-is-not-in-the-right-place-using-HIGHCAP-in-SGPLOT/m-p/882985#M348895</link>
      <description>&lt;P&gt;This is an exact duplicate of you other post. I'm going to lock this one and leave the other open so that the answers will all be in one place. &lt;A href="https://communities.sas.com/t5/SAS-Programming/Arrow-in-not-at-the-end-of-the-bar-with-SPGLOT-and-HIGHCAP/m-p/881889" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/Arrow-in-not-at-the-end-of-the-bar-with-SPGLOT-and-HIGHCAP/m-p/881889&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 18:10:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Arrow-is-not-in-the-right-place-using-HIGHCAP-in-SGPLOT/m-p/882985#M348895</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2023-06-29T18:10:39Z</dc:date>
    </item>
  </channel>
</rss>

