<?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: Adding count above bar graph using Call BAR and proc iml in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Adding-count-above-bar-graph-using-Call-BAR-and-proc-iml/m-p/681625#M5261</link>
    <description>&lt;P&gt;Check CALL BAR() option .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2020 13:04:00 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-09-04T13:04:00Z</dc:date>
    <item>
      <title>Adding count above bar graph using Call BAR and proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Adding-count-above-bar-graph-using-Call-BAR-and-proc-iml/m-p/681605#M5260</link>
      <description>&lt;P&gt;Hi there, I am trying to add the counts above a bar graph, however, I am unfamiliar with the Call BAR function and cannot seem to find any answers online. I used the code provided below.&lt;/P&gt;&lt;PRE&gt;data SAS_Test;
input var1 var2 var3 var4;
datalines;
1	.	1	1
0	0	.	.
.	.	1	0
1	.	.	.
1	0	1	.
1	1	.	1
0	0	1	0
0	1	1	0
1	1	.	1
0	1	0	1
0	1	0	1
0	1	0	1
;
run;

proc means data=SAS_Test N NMISS;
run;

proc iml;
varNames = {var1 var2 var3 var4};

use SAS_Test;                      /* open data set */
read all var varNames into X;      /* create numeric data matrix, X */
close SAS_Test;

title "Counts of Rows That Contain Missing Values";
Count = countmiss(X,"row");       /* count missing values for each obs */
call Bar(Count);                  /* create bar chart */
run;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 12:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Adding-count-above-bar-graph-using-Call-BAR-and-proc-iml/m-p/681605#M5260</guid>
      <dc:creator>advmsj</dc:creator>
      <dc:date>2020-09-04T12:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding count above bar graph using Call BAR and proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Adding-count-above-bar-graph-using-Call-BAR-and-proc-iml/m-p/681625#M5261</link>
      <description>&lt;P&gt;Check CALL BAR() option .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 13:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Adding-count-above-bar-graph-using-Call-BAR-and-proc-iml/m-p/681625#M5261</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-09-04T13:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding count above bar graph using Call BAR and proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Adding-count-above-bar-graph-using-Call-BAR-and-proc-iml/m-p/681656#M5262</link>
      <description>&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=imlug&amp;amp;docsetTarget=imlug_langref_sect066.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;As mentioned in the doc&lt;/A&gt;, "&lt;SPAN&gt;The BAR subroutine displays a bar chart by calling the SGPLOT procedure. ...&lt;/SPAN&gt;&lt;SPAN&gt;. The BAR subroutine is not a comprehensive interface to the SGPLOT procedure. It is intended for creating simple bar charts."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=imlug&amp;amp;docsetTarget=imlug_graphics_sect002.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;The doc shows how to call the SGPLOT procedure&lt;/A&gt; to access any feature that PROC SGPLOT support. For example, you can modify the example in the doc to get this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create Bar var {'Count'}; append; close Bar;  /* write to SAS data set  */
submit;
   proc sgplot data=Bar;                /* create the plot     */
      vbar Count / datalabel;
   run;
endsubmit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Sep 2020 15:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Adding-count-above-bar-graph-using-Call-BAR-and-proc-iml/m-p/681656#M5262</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-09-04T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding count above bar graph using Call BAR and proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Adding-count-above-bar-graph-using-Call-BAR-and-proc-iml/m-p/681668#M5264</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 15:39:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Adding-count-above-bar-graph-using-Call-BAR-and-proc-iml/m-p/681668#M5264</guid>
      <dc:creator>advmsj</dc:creator>
      <dc:date>2020-09-04T15:39:41Z</dc:date>
    </item>
  </channel>
</rss>

