Discussion:
Increase font size in proc univariate histogram plot
(too old to reply)
John Uebersax
2009-09-08 16:36:25 UTC
Permalink
Hi Group,

Can anyone tell me a simple way to increase the font size for labels
and titles in histogram plots produced by proc univariate?

Here's my code:

proc univariate data = temp;
var count_p2;
histogram /lognormal (color=red);
run;

The documentation isn't exactly clear about this. Is it done via a
goptions statement?

More generally any tips about how to tweak options so histograms look
good when pasted into an MS Office document would be appreciated.

John Uebersax
Robin R High
2009-09-08 17:49:35 UTC
Permalink
John,

You can do much of it with axis statements, as with GPLOT:

goptions reset=all htext=2;

axis1 length = 8 in origin=(2 in, 1.25 in) value=(h=2) label=(h=3);
axis2 length = 7 in value=(h=2) label=(h=3);

proc univariate data = temp;
var count_p2;
histogram /lognormal (color=red) haxis=axis1 vaxis=axis2;
TITLE1 h=3 "title";
INSET n (3.0) mean (5.2) median (5.2) std='Std Dev' (6.2) / pos = ne
header = 'Summary Statistics' cfill = ywh;
run;

I also usually add key summary stats somewhere that they will fit.

Robin High
UNMC






John Uebersax <***@GMAIL.COM>
Sent by: "SAS(r) Discussion" <SAS-***@LISTSERV.UGA.EDU>
09/08/2009 12:18 PM
Please respond to
John Uebersax <***@GMAIL.COM>


To
SAS-***@LISTSERV.UGA.EDU
cc

Subject
Increase font size in proc univariate histogram plot






Hi Group,

Can anyone tell me a simple way to increase the font size for labels
and titles in histogram plots produced by proc univariate?

Here's my code:

proc univariate data = temp;
var count_p2;
histogram /lognormal (color=red);
run;

The documentation isn't exactly clear about this. Is it done via a
goptions statement?

More generally any tips about how to tweak options so histograms look
good when pasted into an MS Office document would be appreciated.

John Uebersax
Mike Zdeb
2009-09-08 18:01:21 UTC
Permalink
hi ... you can write directly to a GIF file then insert the file into WORD
using lotsa' pixels takes away some of the "raggedy bitmap stuff"


goptions reset=all
device=gif gsfname=gout xpixels=2000 ypixels=1500
ftext='calibri' htext=2 gunit=pct;

pattern1 v=s c=green;

filename gout 'z:\histo.gif';

title1 h=4 f='calibri/bo' 'HISTOGRAM: SASHELP.AIR' ls=2;
* some white space around the chart;
title2 a=90 ls=1;
title3 a=-90 ls=1;
footnote1 ls=1;

proc univariate data = sashelp.air noprint;
var air;
histogram;
run;


--
Mike Zdeb
***@Albany School of Public Health
One University Place
Rensselaer, New York 12144-3456
P/518-402-6479 F/630-604-1475
Post by John Uebersax
Hi Group,
Can anyone tell me a simple way to increase the font size for labels
and titles in histogram plots produced by proc univariate?
proc univariate data = temp;
var count_p2;
histogram /lognormal (color=red);
run;
The documentation isn't exactly clear about this. Is it done via a
goptions statement?
More generally any tips about how to tweak options so histograms look
good when pasted into an MS Office document would be appreciated.
John Uebersax
Loading...