Hello,
I am trying to increase the font size of both labels and tick values for both x-axis and y-axis. Is there an easy way to do that?
proc univariate data = data noprint;
class Group;
histogram Test / nrows = 3 normal;
run;
Thank you in advance.
Use PROC SGPANEL and do something like this
proc sgpanel data=sashelp.iris;
panelby species / rows=3;
histogram SepalLength;
rowaxis labelattrs=(size=12 weight=bold) valueattrs=(size=12 weight=bold);
colaxis labelattrs=(size=12 weight=bold) valueattrs=(size=12 weight=bold);
run;
If the histogram has to be in PROC UNIVARIATE, then I think the only solution (which would be difficult) is to modify the template.
If you can do this in PROC SGPLOT, then the solution is simple.
These things are easier to control in PROC SGPLOT doing something like this
title "Some Histogram";
proc sgplot data=sashelp.iris;
histogram SepalLength;
xaxis labelattrs=(size=12 weight=bold) valueattrs=(size=12 weight=bold);
yaxis labelattrs=(size=12 weight=bold) valueattrs=(size=12 weight=bold);
run;
title;
I thought about sgplot but can it make 3 histograms placed nicely one under another? Like proc univariate does.
Good point. To get histograms vertically above of one another, use PROC SGPANEL.
Use PROC SGPANEL and do something like this
proc sgpanel data=sashelp.iris;
panelby species / rows=3;
histogram SepalLength;
rowaxis labelattrs=(size=12 weight=bold) valueattrs=(size=12 weight=bold);
colaxis labelattrs=(size=12 weight=bold) valueattrs=(size=12 weight=bold);
run;
Got it -- thank you!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.