BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Girmante
Calcite | Level 5

 how to increase the size of letters and numbers in axes and legend and how to put letters from Anova Tukey test letters into a graph
Thank you

data Microbiolog;
input Species $ Age_class AWCD ;
datalines;
pm 2 0.620742294
pm 2 0.588027599
pm 2 0.578838351
ps 2 0.694835125
ps 2 0.648453047
ps 2 0.652307527
pm 5 0.60991129
pm 5 0.618360753
pm 5 0.596767204
ps 5 0.646184946
ps 5 0.63157043
ps 5 0.636995161
pm 11 0.667849462
pm 11 0.586395699
pm 11 0.577059677
ps 11 0.836491398
ps 11 0.841095161
ps 11 0.777258602
;

proc sgplot data=Microbiolog;
vbox AWCD / Group=Species category=Age_class;
xaxis discreteorder=data;
run;

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

To change the appearance of text on axis and legends check for the appearance options in the doc.

To insert text you can use the INSET statement.

See also example below

 


proc sgplot data=Microbiolog;
vbox AWCD / Group=Species category=Age_class;
inset (
"Confidence level (*ESC*){unicode alpha} =" = "0.05"
"some label" = "some value"
)
;
xaxis discreteorder=data
labelattrs=(color=red size=20pt)
valueattrs=(color=green size=15pt)
;
keylegend /
valueattrs=(color=blue size=10pt)
titleattrs=(color=black size=20pt)
;
run;

Also check out this blog entry for more details:

https://blogs.sas.com/content/sgf/2017/09/15/proc-sgplot-theres-an-attrs-for-that/

View solution in original post

1 REPLY 1
BrunoMueller
SAS Super FREQ

To change the appearance of text on axis and legends check for the appearance options in the doc.

To insert text you can use the INSET statement.

See also example below

 


proc sgplot data=Microbiolog;
vbox AWCD / Group=Species category=Age_class;
inset (
"Confidence level (*ESC*){unicode alpha} =" = "0.05"
"some label" = "some value"
)
;
xaxis discreteorder=data
labelattrs=(color=red size=20pt)
valueattrs=(color=green size=15pt)
;
keylegend /
valueattrs=(color=blue size=10pt)
titleattrs=(color=black size=20pt)
;
run;

Also check out this blog entry for more details:

https://blogs.sas.com/content/sgf/2017/09/15/proc-sgplot-theres-an-attrs-for-that/

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 753 views
  • 2 likes
  • 2 in conversation