<?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: In PROC UNIVARIATE, AXIS1 VALUE=(ROTATE=90) Doesn't Work in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526289#M17650</link>
    <description>&lt;P&gt;This is Junyong. Thanks for your reply. As aforementioned, I want the vertical values—not the vertical label—to be rotated. AXIS1 does work in PROC GPLOT (the left figure), but doesn't in PROC UNIVARIATE (the right figure). I wonder whether I can apply the same effect in PROC UNIVARIATE. I appreciate for the difference between ROTATE and ANGLE—I just found it.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jan 2019 06:08:56 GMT</pubDate>
    <dc:creator>Junyong</dc:creator>
    <dc:date>2019-01-11T06:08:56Z</dc:date>
    <item>
      <title>In PROC UNIVARIATE, AXIS1 VALUE=(ROTATE=90) Doesn't Work</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526272#M17648</link>
      <description>&lt;P&gt;Here's the minimal working example and the corresponding outcomes.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _01;
	call streaminit(1);
	do I=1 to 5000;
		X=rand("normal");
		output;
	end;
run;

axis1 value=(rotate=90);
symbol i=join;
proc gplot data=_01;
	plot X*I/vaxis=axis1;
run;

proc univariate data=_01;
	var X;
	histogram/normal vaxis=axis1;
run;

quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02.png" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26190i1A44ADF2ACE55264/image-size/small?v=v2&amp;amp;px=200" role="button" title="02.png" alt="02.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="01.png" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26189iD1754F764EB1509E/image-size/small?v=v2&amp;amp;px=200" role="button" title="01.png" alt="01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 03:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526272#M17648</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2019-01-11T03:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: In PROC UNIVARIATE, AXIS1 VALUE=(ROTATE=90) Doesn't Work</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526288#M17649</link>
      <description>&lt;P&gt;I'm assuming this is what you're looking for, which is actually the ANGLE option. If you use ROTATE each letter rotates and it's kind of weird. You may need to reset the GOPTIONS as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;goptions reset=all;

axis1 label=(a=90 'this is a long label for the y-axis');

proc gplot data=sashelp.class;
plot height*weight / vaxis=axis1;
run;&lt;/PRE&gt;
&lt;P&gt;Otherwise you'll need to explain in more detail what you want.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173881"&gt;@Junyong&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Here's the minimal working example and the corresponding outcomes.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _01;
	call streaminit(1);
	do I=1 to 5000;
		X=rand("normal");
		output;
	end;
run;

axis1 value=(rotate=90);
symbol i=join;
proc gplot data=_01;
	plot X*I/vaxis=axis1;
run;

proc univariate data=_01;
	var X;
	histogram/normal vaxis=axis1;
run;

quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02.png" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26190i1A44ADF2ACE55264/image-size/small?v=v2&amp;amp;px=200" role="button" title="02.png" alt="02.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="01.png" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26189iD1754F764EB1509E/image-size/small?v=v2&amp;amp;px=200" role="button" title="01.png" alt="01.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 05:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526288#M17649</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-11T05:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: In PROC UNIVARIATE, AXIS1 VALUE=(ROTATE=90) Doesn't Work</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526289#M17650</link>
      <description>&lt;P&gt;This is Junyong. Thanks for your reply. As aforementioned, I want the vertical values—not the vertical label—to be rotated. AXIS1 does work in PROC GPLOT (the left figure), but doesn't in PROC UNIVARIATE (the right figure). I wonder whether I can apply the same effect in PROC UNIVARIATE. I appreciate for the difference between ROTATE and ANGLE—I just found it.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 06:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526289#M17650</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2019-01-11T06:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: In PROC UNIVARIATE, AXIS1 VALUE=(ROTATE=90) Doesn't Work</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526291#M17651</link>
      <description>&lt;P&gt;AFAIK you don't change the options in graphs from PROC via AXIS type statements, you can change them by changing the template.&amp;nbsp;&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/173881"&gt;@Junyong&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This is Junyong. Thanks for your reply. As aforementioned, I want the vertical values—not the vertical label—to be rotated. AXIS1 does work in PROC GPLOT (the left figure), but doesn't in PROC UNIVARIATE (the right figure). I wonder whether I can apply the same effect in PROC UNIVARIATE. I appreciate for the difference between ROTATE and ANGLE—I just found it.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 06:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526291#M17651</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-11T06:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: In PROC UNIVARIATE, AXIS1 VALUE=(ROTATE=90) Doesn't Work</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526391#M17652</link>
      <description>&lt;P&gt;Neither the template-based ODS GRAPHICS nor the device-based output from UNIVARIATE supports rotated Y axis values. I tried turning off ODS GRAPHICS, and UNIVARIATE gave me a warning that it would not honor the rotate on the AXIS1 statement. To see this, just wrap the code this way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics off;&lt;/P&gt;
&lt;P&gt;proc univariate ... ;&lt;/P&gt;
&lt;P&gt;ods graphics on;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 15:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526391#M17652</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-01-11T15:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: In PROC UNIVARIATE, AXIS1 VALUE=(ROTATE=90) Doesn't Work</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526419#M17653</link>
      <description>&lt;P&gt;You don't actual say what you are trying to accomplish. If the idea is to get a histogram and density curve then perhaps you can use Proc Sgplot.&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=_01;
   histogram x /nbins=40 showbins;
   density x;
   xaxis fitpolicy=rotate valuesrotate= vertical;
run;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc SGPLOT allows overlaying a number of different plots in a single chart. In the above I used NBINS option to create more bins than the default algorithm would show. The Xaxis statement controls appearance of the axis. FITPOLICY says to rotate values instead of reducing the number tick marks, the VALUESROTATE controls whether you get vertical or angled result. If you want to force a more similar appearance on the tick mark values you could add VALUESFORMAT=f5.2 so each value forces 2 decimal places.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 16:59:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/In-PROC-UNIVARIATE-AXIS1-VALUE-ROTATE-90-Doesn-t-Work/m-p/526419#M17653</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-11T16:59:21Z</dc:date>
    </item>
  </channel>
</rss>

