<?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: Using bloc statements on the Y-axis in scatter or hbarparm in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/462558#M15950</link>
    <description>&lt;P&gt;Thanks Rick, can you say anything about why? It seems like it is relativly easy to do as the GTL is more or less just switching axis. A band plot and a High - low with a bit of the same behaviour seem to handle this. Creating a large set of polygons is a bit cumbersome, but probably completely doable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any plans to add in next version?&lt;/P&gt;</description>
    <pubDate>Wed, 16 May 2018 05:55:54 GMT</pubDate>
    <dc:creator>PaalNavestad</dc:creator>
    <dc:date>2018-05-16T05:55:54Z</dc:date>
    <item>
      <title>Using bloc statements on the Y-axis in scatter or hbarparm</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/461998#M15933</link>
      <description>&lt;P&gt;I would really like to use block statements on the y axis. I make a lot of plots on depth where you usually have the y-axis as your "normal" x-axis and the value on the X..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vbarparm works nice&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hbar.PNG" style="width: 410px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20502i75D7DA014A3B0C99/image-size/large?v=v2&amp;amp;px=999" role="button" title="hbar.PNG" alt="hbar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;While hparparm does not work nice&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vbar.PNG" style="width: 411px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20503i5665B614720A5068/image-size/large?v=v2&amp;amp;px=999" role="button" title="vbar.PNG" alt="vbar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever I try to use block on the Y-axis SAS says it does not support so. Does anybody have a work around?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A question to SAS is why can't this be supported?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code for creating the graphs are below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the generated GTL templates they are equal with the exception that the horisontal has an orient = horizontal added. This tells me that it basically treats the plot the same. However you cant just use orient on the block plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code to reproduce.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc hpbin data=sashelp.class numbin=5;
	var weight;
	ods output mapping=map;
run;

/*Add a block variable*/

data map;
	set map;
	length block $ 8;
	if bin=1 then block='Low';
	else if bin=5 then block='High';
	else block='Middle';
	/*Fixing frequencies to show problem better*/
	frequency= frequency*10;
run;
ods graphics on / heighyt=300 px width=400 px;

/*This is nice*/

proc sgplot data=map tmplout='/shared/winshare/teams_no/AnalyticalFiles/vbarparm.txt';
	vbarparm category=bin response=frequency;
	block X=bin block=block / transparency=0.9;
run;


/*This is not nice*/

proc sgplot data=map tmplout='/shared/winshare/teams_no/AnalyticalFiles/hbarparm.txt';;
	hbarparm category=bin response=frequency;
	block x=bin block=block / transparency=0.9;
	/*Block only responds to x variable*/
	
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 12:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/461998#M15933</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2018-05-14T12:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using bloc statements on the Y-axis in scatter or hbarparm</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/462466#M15949</link>
      <description>&lt;P&gt;I don't think PROC SGPLOT supports horizontal BLOCKs. You would have to emulate them by using the POLYGON statement or use&amp;nbsp;annotation.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 18:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/462466#M15949</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-15T18:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using bloc statements on the Y-axis in scatter or hbarparm</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/462558#M15950</link>
      <description>&lt;P&gt;Thanks Rick, can you say anything about why? It seems like it is relativly easy to do as the GTL is more or less just switching axis. A band plot and a High - low with a bit of the same behaviour seem to handle this. Creating a large set of polygons is a bit cumbersome, but probably completely doable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any plans to add in next version?&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 05:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/462558#M15950</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2018-05-16T05:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using bloc statements on the Y-axis in scatter or hbarparm</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/462609#M15952</link>
      <description>&lt;P&gt;No, I do not have any insight into why. Most likely the&amp;nbsp;reason is that PROC SGPLOT is designed to handle the common cases that 95% of the people want 95% of the time. Until someone like you asks for a feature, the&amp;nbsp;development team might not know that it is wanted by customers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would encourage you to ask for this feature if it is important to you. Like you, I have sometimes needed this feature and lamented that it was not in SGPLOT.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 09:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/462609#M15952</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-16T09:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using bloc statements on the Y-axis in scatter or hbarparm</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/462616#M15953</link>
      <description>&lt;P&gt;OK,&lt;/P&gt;&lt;P&gt;I'll post it as a wish if I remember how.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 10:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/462616#M15953</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2018-05-16T10:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using bloc statements on the Y-axis in scatter or hbarparm</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/463065#M15966</link>
      <description>It is not available in GTL either.  Hence, it is not available in SGPLOT.  Mostly because no one (initially) asked for this use case.  It would help if you put in your request for this feature with Tech Support.  The "InnerMargins" needed for this plot were initially only available for x-axis.  Inner Margins for Y axis were added only recently.  So, now it would be easier to implement a y-axis version of this plot.</description>
      <pubDate>Thu, 17 May 2018 17:25:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-bloc-statements-on-the-Y-axis-in-scatter-or-hbarparm/m-p/463065#M15966</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-05-17T17:25:06Z</dc:date>
    </item>
  </channel>
</rss>

