<?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: Can I produce graphs with uniform wall dimension using sgplot and a by statement? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-produce-graphs-with-uniform-wall-dimension-using-sgplot/m-p/543329#M17902</link>
    <description>&lt;P&gt;I would start with something simple such as adding a VALUESFORMAT=F5.3. See if that forces all the yaxis labels to 3 decimal points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The specific value you show means that an F4.2 might do odd things to force a second tick label, possibly resulting in multiple 0.00 tickmarks. I &lt;STRONG&gt;think&lt;/STRONG&gt; that F5.3 would end up with 0.000, 0.001, 0.002 but can't test that without your data.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2019 21:28:33 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-03-14T21:28:33Z</dc:date>
    <item>
      <title>Can I produce graphs with uniform wall dimension using sgplot and a by statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-produce-graphs-with-uniform-wall-dimension-using-sgplot/m-p/543317#M17901</link>
      <description>&lt;P&gt;Can I use sgplot with a by statement to produce multiple separate graphs that have the same wall dimension, varying overall image width-heigth as necessary?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is desired because I want the wall (or plot) area to be the same for graphs that have different y-scaling. My output has six graphs, one of which has much different y-scaling so that the y-axis numbers are to four decimal places whereas the others are just two. This causes the wall dimension of the one graph to shrink in width in order to accommodate the extra space needed by the y-axis values within the total image width.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following is the current code where i control overall image size in the ods graphics statement, and two graphs representing the problem (same image width but different wall width; i want to preserve the latter):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
ods listing	style=journal3
			image_DPI=300
			gpath="C:\Users\das\Desktop\SAStemp\PG boxplots"
			;
ods graphics on	/	width=40mm
					outputfmt=tiff
					imagename="listJ3"
					scale=on
				;
options nobyline;
proc sgplot data=paige_long 
		noautolegend
		nowall
		aspect=1
		;
	by marker ;
	vbox pr / group=species category=movip connect=mean spread nofill;
	xaxis display=(nolabel);
	yaxis display=(nolabel) min=0;
run;

ods listing close ;
ods html;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="listJ355.png" style="width: 472px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27935i722836B71E95323E/image-size/large?v=v2&amp;amp;px=999" role="button" title="listJ355.png" alt="listJ355.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="listJ357.png" style="width: 472px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27936iDFBD19221771ED46/image-size/large?v=v2&amp;amp;px=999" role="button" title="listJ357.png" alt="listJ357.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 20:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-produce-graphs-with-uniform-wall-dimension-using-sgplot/m-p/543317#M17901</guid>
      <dc:creator>das</dc:creator>
      <dc:date>2019-03-14T20:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can I produce graphs with uniform wall dimension using sgplot and a by statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-produce-graphs-with-uniform-wall-dimension-using-sgplot/m-p/543329#M17902</link>
      <description>&lt;P&gt;I would start with something simple such as adding a VALUESFORMAT=F5.3. See if that forces all the yaxis labels to 3 decimal points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The specific value you show means that an F4.2 might do odd things to force a second tick label, possibly resulting in multiple 0.00 tickmarks. I &lt;STRONG&gt;think&lt;/STRONG&gt; that F5.3 would end up with 0.000, 0.001, 0.002 but can't test that without your data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 21:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-produce-graphs-with-uniform-wall-dimension-using-sgplot/m-p/543329#M17902</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-14T21:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can I produce graphs with uniform wall dimension using sgplot and a by statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-produce-graphs-with-uniform-wall-dimension-using-sgplot/m-p/543373#M17903</link>
      <description>&lt;P&gt;Thank you ballardw. I think that is working well enough. I think I am trying to do to much with the by statement, as well. So my new code and the same two examples are posted below. I think this formatting suggestion combined with creating each plot separately so as to fine tune each y-axis most closely is the result that I was hoping for. Best wishes and Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title; footnote;
ods _all_ close;
ods listing	style=journal3
			image_DPI=300
			gpath="C:\Users\das\Desktop\SAStemp\PG boxplots"
			;
ods graphics on	/	width=40mm
					outputfmt=png
					imagename="listJ3"
					scale=on
				;
proc sort data=paige_long;
	by marker;
run;
proc sgplot data=paige_long 
		noautolegend
		nowall
		aspect=1
		;
	where marker = "CD3";
	vbox pr / group=species category=movip spread nofill;
	xaxis display=(nolabel);
	yaxis display=(nolabel) min=0 VALUESFORMAT=F5.3 minor ;
run;
proc sgplot data=paige_long 
		noautolegend
		nowall
		aspect=1
		;
	where marker = "CD20";
	vbox pr / group=species category=movip spread nofill;
	xaxis display=(nolabel);
	yaxis display=(nolabel) min=0 VALUESFORMAT=F5.3 minor ;
run;
proc sgplot data=paige_long 
		noautolegend
		nowall
		aspect=1
		;
	where marker = "CD79a";
	vbox pr / group=species category=movip spread nofill;
	xaxis display=(nolabel);
	yaxis display=(nolabel) valeus=(0 to 0.0025 by 0.001) VALUESFORMAT=F5.3 minor;
run;
proc sgplot data=paige_long 
		noautolegend
		nowall
		aspect=1
		;
	where marker = "CD163";
	vbox pr / group=species category=movip spread nofill;
	xaxis display=(nolabel);
	yaxis display=(nolabel) min=0 VALUESFORMAT=F5.3 minor ;
run;
proc sgplot data=paige_long 
		noautolegend
		nowall
		aspect=1
		;
	where marker = "Iba1";
	vbox pr / group=species category=movip spread nofill;
	xaxis display=(nolabel);
	yaxis display=(nolabel) min=0 VALUESFORMAT=F5.3 minor ;
run;
proc sgplot data=paige_long 
		noautolegend
		nowall
		aspect=1
		;
	where marker = "IL-17";
	vbox pr / group=species category=movip spread nofill;
	xaxis display=(nolabel);
	yaxis display=(nolabel) min=0 VALUESFORMAT=F5.3 minor ;
run;


ods listing close ;
ods html;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="listJ32.png" style="width: 472px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27948iB45A6B20FB1995B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="listJ32.png" alt="listJ32.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="listJ31.png" style="width: 472px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27947iD6A510006C57C77A/image-size/large?v=v2&amp;amp;px=999" role="button" title="listJ31.png" alt="listJ31.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 00:39:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-produce-graphs-with-uniform-wall-dimension-using-sgplot/m-p/543373#M17903</guid>
      <dc:creator>das</dc:creator>
      <dc:date>2019-03-15T00:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can I produce graphs with uniform wall dimension using sgplot and a by statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-produce-graphs-with-uniform-wall-dimension-using-sgplot/m-p/553011#M18025</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you tried this in your sgplot statement?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;uniform&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=yscale&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Just a thought &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 19:18:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-produce-graphs-with-uniform-wall-dimension-using-sgplot/m-p/553011#M18025</guid>
      <dc:creator>bendsteel6</dc:creator>
      <dc:date>2019-04-22T19:18:28Z</dc:date>
    </item>
  </channel>
</rss>

