BookmarkSubscribeRSS Feed
rhaley1821
Obsidian | Level 7

Hi all,

 

I am working on creating a graph that includes two lines of xaxis labels, one bolded and the second not. I am unsure how to selectively bold the first line in proc sgplot. I would appreciate any help. Thanks! 

 

graph I am attempting to produce: 

 

Screen Shot 2020-12-06 at 3.19.08 PM.png

 

current code: 

 

TITLE 'title1';
PROC SGPLOT DATA=work.test;
VBAR State / RESPONSE=Col
FILLATTRS=(color=blue);
XAXIS LABEL = 'State '
LABELATTRS=(WEIGHT=bold);
YAXIS LABEL='Percent'
LABELATTRS=(WEIGHT=bold)
GRID
VALUES=(0 to 4 by 1);
REFLINE 1.8 / AXIS=y
LINEATTRS= (COLOR=indigo pattern=dash)
LABEL='NA = 1.8'
LABELLOC=inside;
RUN;
TITLE;

 

Thank you!

2 REPLIES 2
PaigeMiller
Diamond | Level 26

While this may be possible using a single XAXIS statement, you could certainly create the second line which is un-bolded using a FOOTNOTE statement.

--
Paige Miller
rhaley1821
Obsidian | Level 7

That works perfectly, thank you so much!