🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 07-17-2018 10:00 AM
(3040 views)
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.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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;
6 REPLIES 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
--
Paige Miller
Paige Miller
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I thought about sgplot but can it make 3 histograms placed nicely one under another? Like proc univariate does.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Good point. To get histograms vertically above of one another, use PROC SGPANEL.
--
Paige Miller
Paige Miller
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Got it -- thank you!