<?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: barwidth has no effect when using HIGHLOW in PROC SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/barwidth-has-no-effect-when-using-HIGHLOW-in-PROC-SGPLOT/m-p/939072#M24906</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204385"&gt;@karlbang&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't want to change the axis type: For your linear X axis the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0mjz9ktgnse58n14deqdvnnxarp.htm#n07xwlp8fmu9ean1nyn6c39qheli" target="_blank" rel="noopener"&gt;INTERVALBARWIDTH= option&lt;/A&gt; is applicable. Try values like &lt;FONT face="courier new,courier"&gt;0.07in&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;1.5mm&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;4px&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;6&lt;/FONT&gt;, etc.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 14:28:09 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2024-08-13T14:28:09Z</dc:date>
    <item>
      <title>barwidth has no effect when using HIGHLOW in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/barwidth-has-no-effect-when-using-HIGHLOW-in-PROC-SGPLOT/m-p/939057#M24902</link>
      <description>&lt;P&gt;I am making a HIGHLOW plot&lt;/P&gt;&lt;PRE&gt;data w;
	input x y _ $;
	datalines;
    -2.460 17 A
    -0.977 12 A
    0.014 18 A
    0.984 18 A
    2.429 6 A
	-0.33 -1 B
	-0.97 -1 B
	0.61 -1 B
	0.69 -1 B
;
run;
data w;
	set w;
	if _ = 'A' then do;
		high = y;
		low = 0;
	end;
	if _ = 'B' then do;
		high = 0;
		low = y;
	end;
proc sgplot data = w;
	highlow x = x low = low high = high / type = bar group = _ barwidth = 0.95;
run;&lt;/PRE&gt;&lt;P&gt;I must be doing something wrong since all values of barwidth gives me the same plot. Any suggestions about what I am doing wrong ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 13:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/barwidth-has-no-effect-when-using-HIGHLOW-in-PROC-SGPLOT/m-p/939057#M24902</guid>
      <dc:creator>karlbang</dc:creator>
      <dc:date>2024-08-13T13:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: barwidth has no effect when using HIGHLOW in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/barwidth-has-no-effect-when-using-HIGHLOW-in-PROC-SGPLOT/m-p/939061#M24903</link>
      <description>&lt;P&gt;From the HIGHLOW statement option BARWIDTH documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV class="xisDoc-refBlock"&gt;
&lt;DIV class="xisDoc-syntax"&gt;
&lt;DIV class="xisDoc-syntaxDescription"&gt;
&lt;DIV class="xisDoc-optionalArgGroup"&gt;
&lt;DIV id="n0kajum9auy8ign12j60aa7604h9" class="xisDoc-argDescriptionPair"&gt;
&lt;DIV class="xisDoc-argumentDescription"&gt;
&lt;SECTION class="xisDoc-tableWrap"&gt;
&lt;TABLE class="xisDoc-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="xisDoc-requirement"&gt;Requirement&lt;/TH&gt;
&lt;TD class="xisDoc-summaryText"&gt;This option is applicable only when the X or Y axis is discrete.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/SECTION&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you need to add an XAXIS statement setting TYPE=DISCRETE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204385"&gt;@karlbang&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am making a HIGHLOW plot&lt;/P&gt;
&lt;PRE&gt;data w;
	input x y _ $;
	datalines;
    -2.460 17 A
    -0.977 12 A
    0.014 18 A
    0.984 18 A
    2.429 6 A
	-0.33 -1 B
	-0.97 -1 B
	0.61 -1 B
	0.69 -1 B
;
run;
data w;
	set w;
	if _ = 'A' then do;
		high = y;
		low = 0;
	end;
	if _ = 'B' then do;
		high = 0;
		low = y;
	end;
proc sgplot data = w;
	highlow x = x low = low high = high / type = bar group = _ barwidth = 0.95;
run;&lt;/PRE&gt;
&lt;P&gt;I must be doing something wrong since all values of barwidth gives me the same plot. Any suggestions about what I am doing wrong ?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 13:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/barwidth-has-no-effect-when-using-HIGHLOW-in-PROC-SGPLOT/m-p/939061#M24903</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-08-13T13:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: barwidth has no effect when using HIGHLOW in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/barwidth-has-no-effect-when-using-HIGHLOW-in-PROC-SGPLOT/m-p/939072#M24906</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204385"&gt;@karlbang&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't want to change the axis type: For your linear X axis the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0mjz9ktgnse58n14deqdvnnxarp.htm#n07xwlp8fmu9ean1nyn6c39qheli" target="_blank" rel="noopener"&gt;INTERVALBARWIDTH= option&lt;/A&gt; is applicable. Try values like &lt;FONT face="courier new,courier"&gt;0.07in&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;1.5mm&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;4px&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;6&lt;/FONT&gt;, etc.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 14:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/barwidth-has-no-effect-when-using-HIGHLOW-in-PROC-SGPLOT/m-p/939072#M24906</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-08-13T14:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: barwidth has no effect when using HIGHLOW in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/barwidth-has-no-effect-when-using-HIGHLOW-in-PROC-SGPLOT/m-p/939228#M24912</link>
      <description>Thank you very much</description>
      <pubDate>Wed, 14 Aug 2024 12:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/barwidth-has-no-effect-when-using-HIGHLOW-in-PROC-SGPLOT/m-p/939228#M24912</guid>
      <dc:creator>karlbang</dc:creator>
      <dc:date>2024-08-14T12:48:26Z</dc:date>
    </item>
  </channel>
</rss>

