Hi all,
I wrote the program below and the title was bold, but labels are not.
Any tips on how to turn the labels of x and y axis into bold ? Thank you !
PROC SGPLOT DATA = HypAnl.HypAnalysis1;
VBOX DBP / CATEGORY = EthRaceCd;
LABEL DBP = 'Latest DBP Measurement';
LABEL EthRaceCd = 'Ethnicity/RaceGroup';
TITLE 'Diastolic blood pressures by ethnicity/RaceGroup';
RUN;
You have XAXIS and YAXIS LABEL(s) but I believe you need to define them as such, ie XAXIS LABEL = 'Ethnicity Race code ' and then use LABELATTRS = (WEIGHT = BOLD), same for YAXIS.
The XAXIS and YAXIS statements have the option LABELATTRS that can assign color, font, size and weight (i.e. BOLD) to the text.
Xaxis labelattrs=(weight=Bold );
for example.
Thank you !! I shall go ahead and try that.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.