<?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: Shorten the y axis label for proc univariate histogram in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Shorten-the-y-axis-label-for-proc-univariate-histogram/m-p/805535#M317330</link>
    <description>&lt;P&gt;In the PROC UNIVARIATE step you could insert a LABEL statement to specify a shorter variable label, e.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;label owner_location='Loc.';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;resulting in "Loc. = Chicago", etc. Independently, the values themselves could be abbreviated with a user-defined format (e.g. "Chicago" = "Chic."). Moreover, increasing the height of the plot (using the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p0kroq43yu0lspn16hk1u4c65lti.htm#n19zh3fg7rai9xn1brgrm1vjr2wy" target="_blank" rel="noopener"&gt;HEIGHT= option&lt;/A&gt; of the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p0kroq43yu0lspn16hk1u4c65lti.htm" target="_blank" rel="noopener"&gt;ODS GRAPHICS statement&lt;/A&gt;), if possible, would create more space for those labels.&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/417098"&gt;@eh51&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In on-line resources, the graphs have the class variable shown to the far left of the graphic by itself, then between that and each histogram is the variable value for that histogram (e.g. 'Chicago', 'Houston', etc.) by itself. I like this format but cannot find the controls.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think what you describe is the layout in traditional (SAS/GRAPH) graphics. So using that -- &lt;FONT face="courier new,courier"&gt;ods graphics off;&lt;/FONT&gt; -- would be another option.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 16:13:09 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2022-04-01T16:13:09Z</dc:date>
    <item>
      <title>Shorten the y axis label for proc univariate histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Shorten-the-y-axis-label-for-proc-univariate-histogram/m-p/805525#M317325</link>
      <description>&lt;P&gt;I am generating comparative graphics with proc univariate. The y axis labels are very long - they are "class variable name = value", so for example "Owner location = Chicago".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to stack the histograms so have nrow=4 (or some other number). As the number of histograms in the panel increases, the y axis labels get truncated so all I see is 'Owner location ...". This shows to the left of each histogram.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In on-line resources, the graphs have the class variable shown to the far left of the graphic by itself, then between that and each histogram is the variable value for that histogram (e.g. 'Chicago', 'Houston', etc.) by itself. I like this format but cannot find the controls.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;macro items should not impact this question or answer:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;	ods exclude Moments BasicMeasures TestsForLocation Quantiles MissingValues 
				ExtremeObs ParameterEstimates GoodnessOfFit FitQuantiles;
	proc univariate data=work.wins;
		class owner_location;
		histogram &amp;amp;wpref._&amp;amp;stat  /
		normal (color = red w=3 l=2)
		kernel (k=normal color=green w=3 l=1)
		odstitle="&amp;amp;wtitle. (&amp;amp;stat.), &amp;amp;wtitle1p"
		HREF=&amp;amp;whref HREFLABELS=&amp;amp;whreflbl
		NROW=4;
		format &amp;amp;wpref._&amp;amp;stat comma7.0;
		&amp;amp;wwhere.
	run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 15:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Shorten-the-y-axis-label-for-proc-univariate-histogram/m-p/805525#M317325</guid>
      <dc:creator>eh51</dc:creator>
      <dc:date>2022-04-01T15:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shorten the y axis label for proc univariate histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Shorten-the-y-axis-label-for-proc-univariate-histogram/m-p/805530#M317328</link>
      <description>&lt;P&gt;If you want more control over graphs then typically the more flexible approach is to move to a graphing procedure such as Sgplot or Sgpanel. Since it appears that you may be running Univariate only to generate graphs that becomes a much stronger recommendation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sgpanel would allow use of your Class variable(s) on a panel by statement to create one histogram per combination. You have additional options to control how panels are arranged and content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A brief example you could run as you should have the Sashelp.class data set available.&lt;/P&gt;
&lt;PRE&gt;proc sgpanel data=sashelp.class;
   panelby sex /columns=1
                novarname  /*suppresses panelby variable name*/
   ;
   histogram weight;
run;&lt;/PRE&gt;
&lt;P&gt;The class variable value appears at the top of each panel of the graph.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 15:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Shorten-the-y-axis-label-for-proc-univariate-histogram/m-p/805530#M317328</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-01T15:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Shorten the y axis label for proc univariate histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Shorten-the-y-axis-label-for-proc-univariate-histogram/m-p/805535#M317330</link>
      <description>&lt;P&gt;In the PROC UNIVARIATE step you could insert a LABEL statement to specify a shorter variable label, e.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;label owner_location='Loc.';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;resulting in "Loc. = Chicago", etc. Independently, the values themselves could be abbreviated with a user-defined format (e.g. "Chicago" = "Chic."). Moreover, increasing the height of the plot (using the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p0kroq43yu0lspn16hk1u4c65lti.htm#n19zh3fg7rai9xn1brgrm1vjr2wy" target="_blank" rel="noopener"&gt;HEIGHT= option&lt;/A&gt; of the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p0kroq43yu0lspn16hk1u4c65lti.htm" target="_blank" rel="noopener"&gt;ODS GRAPHICS statement&lt;/A&gt;), if possible, would create more space for those labels.&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/417098"&gt;@eh51&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In on-line resources, the graphs have the class variable shown to the far left of the graphic by itself, then between that and each histogram is the variable value for that histogram (e.g. 'Chicago', 'Houston', etc.) by itself. I like this format but cannot find the controls.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think what you describe is the layout in traditional (SAS/GRAPH) graphics. So using that -- &lt;FONT face="courier new,courier"&gt;ods graphics off;&lt;/FONT&gt; -- would be another option.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 16:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Shorten-the-y-axis-label-for-proc-univariate-histogram/m-p/805535#M317330</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-04-01T16:13:09Z</dc:date>
    </item>
  </channel>
</rss>

