How can I make x axis values look bigger? Code is provided below:
goptions reset=all
colors=(black) device=SASEMF target=CGMOF97L gunit=pct hby=3 fby=hwcgm005 rotate=landscape xmax=24cm
ymax=17cm xpixels=1800 ypixels=1300 autosize=on gsfmode=append goutmode=append htext=2.0 htitle=3
ftext= 'simplex' ftitle= 'simplex' noborder;
title2 j=c h=2 "Number";
axis1 label = (a=90 justify=center h=2 "Concentration")
%if ¶mn. eq 700 or ¶mn.= 710 %then %do;
order = (0 to &ordx. by 100)
%end;
%if ¶mn. eq 100 %then %do;
order = (0 to &ord. by 50)
%end;
minor = NONE
offset=(8, )
;
axis2
label = (justify=center " " h=2 justify=center )
major = NONE
minor = NONE
value = (h=2.0)
%if ¶mn. eq 700 or ¶mn.= 710 %then %do;
order = (-1 to 120)
%end;
%if ¶mn. eq 100 %then %do;
order = (-1 to 24)
%end;
origin= (10 pct)
length= 80 pct
/* split='|'*/
offset=(,2 cm)
;
%if ¶mn. eq 700 or ¶mn.= 710 %then %do;
symbol1 interpol=join value=dot value=square height=0.1in cv="&color1" ci="&color1" line=1 width=1;
symbol2 interpol=join value=dot height=0.1in cv="&color2" ci="&color2" line=2 width=1;
legend1 across=2 label=NONE
value=(height=1.5 justify=c "&trt2. (N=&tr1)" "&trt1. (N=&tr2)");
%end;
%if ¶mn. eq 100 %then %do;
symbol1 interpol=join value=dot value=square height=0.1in cv="&color1" ci="&color1" line=1 width=1;
legend1 across=1 label=NONE
value=(height=2.0 justify=c "&trt2. (N=&tr1)");
%end;
footnote3 h=2.0 j=left "&progft.";
proc gplot data=test anno=anno_tick;
plot aval*col=trtan / legend=legend1 vaxis=axis1 haxis=axis2;
format col _colfmt.;
run;
quit;
Hi,
Sorry, going to sidestep your question here and recommend you move to SGPLOT or Graph Template Language. You will find it simpler coding, and far more options to alter the outputs (gplot is the old graph output system). You can find plenty of help and examples here:
http://blogs.sas.com/content/graphicallyspeaking/
Many of which will cover what you are looking for.
Hi,
Thanks! Honestly I like sgplot much more too 🙂 But time is very limited for this task, so I'd prefer to update gplot instead of rewrite it.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.