The attached boxplot looks great, other than the fact that I have a ton of white space. I wamt wanting to make the width of the graph smaller or the width of the box plots themsevles larger. I have been trying to do this using bwidth option, but with no luck. I am needing to put this plot on a poster, but the grash produced is difficult to read. Thank you for any help you can give. Below is the SAS code used to create the box plot.
proc boxplot data=resident;
goptions ftext=CENTX;
symbol value = dot color=red;
plot percent*time/
cboxfill = ywh haxis = axis1 vaxis=axis2 ;
run;
hi ... you can also try using the HPOS goption ...
proc sort data=sashelp.class out=class;
by sex;
run;
goptions reset=all ftext='calibri/bo';
symbol value = dot color=red;
title 'default HPOS';
proc boxplot data=class;
plot height*sex/ cboxfill = ywh ;
run;
goptions hpos=30;
title 'change HPOS to 30';
proc boxplot data=class;
plot height*sex/ cboxfill = ywh ;
run;
more reading ...
HPOS is discussed is ... http://support.sas.com/rnd/datavisualization/papers/GraphBasics.pdf
Hi HyunJee,
You can try something like this:
proc boxplot data=resident;
plot percent * time / hoffset=25 boxwidth=10;
run;
HOFFSET=25 places the first tick mark 25% of the way across the graph. BOXWIDTH=10 sets the width of each box to 10% of the graph width. You can adust those values to your liking.
Bucky
hi ... you can also try using the HPOS goption ...
proc sort data=sashelp.class out=class;
by sex;
run;
goptions reset=all ftext='calibri/bo';
symbol value = dot color=red;
title 'default HPOS';
proc boxplot data=class;
plot height*sex/ cboxfill = ywh ;
run;
goptions hpos=30;
title 'change HPOS to 30';
proc boxplot data=class;
plot height*sex/ cboxfill = ywh ;
run;
more reading ...
HPOS is discussed is ... http://support.sas.com/rnd/datavisualization/papers/GraphBasics.pdf
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.