<?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 Add Vertical Border Line to Discrete Axis in  SGPLOT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Add-Vertical-Border-Line-to-Discrete-Axis-in-SGPLOT/m-p/604292#M175182</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to add a vertical border between bars for q1 and q2 so that the bars for q1 are set off from the other grouped bars. If my x-axis were continuous, I would just use the REFLINE statement, but how do I do this when my x-axis is discrete? I want the line to extend the length of the y-axis. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input year $ var $ value lowerci upperci;
cards;
2018 q1 3.4 3.2 3.6
2019 q1 3.9 3.8 4.0
2018 q2 2.1 2.0 2.2
2019 q2 3.0 2.8 3.2
2018 q3 1.8 1.5 2.1
2019 q3 1.4 1.3	1.5
;
run;

proc sgplot data=have;
  vbarparm category=var response=value/  group=year limitlower=lowerci groupdisplay=cluster  limitupper=upperci barwidth=.6 tip=(value) ;
  yaxis min=0 max=4 minor values= (0 to 4 by .5) grid  label="Strongly disagree : Strongly agree";
  xaxis label = ' ';
  run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2019 21:05:53 GMT</pubDate>
    <dc:creator>svh</dc:creator>
    <dc:date>2019-11-14T21:05:53Z</dc:date>
    <item>
      <title>Add Vertical Border Line to Discrete Axis in  SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-Vertical-Border-Line-to-Discrete-Axis-in-SGPLOT/m-p/604292#M175182</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to add a vertical border between bars for q1 and q2 so that the bars for q1 are set off from the other grouped bars. If my x-axis were continuous, I would just use the REFLINE statement, but how do I do this when my x-axis is discrete? I want the line to extend the length of the y-axis. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input year $ var $ value lowerci upperci;
cards;
2018 q1 3.4 3.2 3.6
2019 q1 3.9 3.8 4.0
2018 q2 2.1 2.0 2.2
2019 q2 3.0 2.8 3.2
2018 q3 1.8 1.5 2.1
2019 q3 1.4 1.3	1.5
;
run;

proc sgplot data=have;
  vbarparm category=var response=value/  group=year limitlower=lowerci groupdisplay=cluster  limitupper=upperci barwidth=.6 tip=(value) ;
  yaxis min=0 max=4 minor values= (0 to 4 by .5) grid  label="Strongly disagree : Strongly agree";
  xaxis label = ' ';
  run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 21:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-Vertical-Border-Line-to-Discrete-Axis-in-SGPLOT/m-p/604292#M175182</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2019-11-14T21:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add Vertical Border Line to Discrete Axis in  SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-Vertical-Border-Line-to-Discrete-Axis-in-SGPLOT/m-p/604357#M175215</link>
      <description>&lt;P&gt;Not the slickest but:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format library=work;
value $q 
'q1.5' = ' '
other = [$2.]
;
run;

proc sgplot data=have;
  vbarparm category=var response=value/  group=year limitlower=lowerci groupdisplay=cluster  
                                       limitupper=upperci barwidth=.6 tip=(value);
  refline 'q1.5' /axis=x ;
  yaxis min=0 max=4 minor values= (0 to 4 by .5) grid  label="Strongly disagree : Strongly agree";
  xaxis label = ' ' values=('q1' 'q1.5' 'q2' 'q3') valuesformat=$q.;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2019 00:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-Vertical-Border-Line-to-Discrete-Axis-in-SGPLOT/m-p/604357#M175215</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-15T00:36:37Z</dc:date>
    </item>
  </channel>
</rss>

