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/

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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