<?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 value labels to SGPLOT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-value-labels-to-SGPLOT/m-p/459721#M116791</link>
    <description>&lt;P&gt;You could also consider a split axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/55/683.html" target="_blank"&gt;http://support.sas.com/kb/55/683.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data new;
   input Type $1 Value;
   datalines;
A 10
B 15
C 12
D 17
E 205
F 225
;
run;

proc sgplot data=new;
   vbar type / response=value;
   yaxis ranges=(0-20 200-230);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fusion_55683_1_brokenaxis" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20347i8F147C046C047C4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="fusion_55683_1_brokenaxis" alt="fusion_55683_1_brokenaxis" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 May 2018 16:07:09 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-05-03T16:07:09Z</dc:date>
    <item>
      <title>Adding value labels to SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-value-labels-to-SGPLOT/m-p/459672#M116779</link>
      <description>&lt;P&gt;I have generated a graph used SGPLOT in SAS Studio, university edition, using the code below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=TABLE1;
	VBAR region;
	title 'Attacks by Region';
	footnote1 BOLD 'Codes';
	footnote3 'Region: MENA-Middle East/North Africa, WEUR-Western Europe, EEUR-Eastern Europe, NAME-North America, ASIA-Asia, OCEA-Oceana, SSAF-Sub Saharan Africa';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;While this works, the graph is difficult to read because one of the bars is so much larger than the others, which blows up the scale. Is there a way to add value labels and/or a grid to the plot?&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 14:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-value-labels-to-SGPLOT/m-p/459672#M116779</guid>
      <dc:creator>sejiki7</dc:creator>
      <dc:date>2018-05-03T14:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding value labels to SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-value-labels-to-SGPLOT/m-p/459704#M116787</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should display the labels:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=TABLE1;
	VBAR region &lt;STRONG&gt;/ datalabel = &amp;lt;your variable containing labels&amp;gt;;&lt;/STRONG&gt;
	title 'Attacks by Region';
	footnote1 BOLD 'Codes';
	footnote3 'Region: MENA-Middle East/North Africa, WEUR-Western Europe, EEUR-Eastern Europe, NAME-North America, ASIA-Asia, OCEA-Oceana, SSAF-Sub Saharan Africa';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;FloT&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 15:11:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-value-labels-to-SGPLOT/m-p/459704#M116787</guid>
      <dc:creator>FloT</dc:creator>
      <dc:date>2018-05-03T15:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding value labels to SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-value-labels-to-SGPLOT/m-p/459721#M116791</link>
      <description>&lt;P&gt;You could also consider a split axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/55/683.html" target="_blank"&gt;http://support.sas.com/kb/55/683.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data new;
   input Type $1 Value;
   datalines;
A 10
B 15
C 12
D 17
E 205
F 225
;
run;

proc sgplot data=new;
   vbar type / response=value;
   yaxis ranges=(0-20 200-230);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fusion_55683_1_brokenaxis" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20347i8F147C046C047C4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="fusion_55683_1_brokenaxis" alt="fusion_55683_1_brokenaxis" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 16:07:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-value-labels-to-SGPLOT/m-p/459721#M116791</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-03T16:07:09Z</dc:date>
    </item>
  </channel>
</rss>

