I'm trying to create box plots with PROC SGPLOT, but I end up with way too much blank gray space at the bottom of the graphs (where the legend usually goes). Does anyone know how to fix this so that the "empty" space doesn't take up so much room and the graph itself can be larger? This is my code:
%MACRO boxplots (compound=);
proc sgplot data=final2 dattrmap=attrmap noautolegend;
vbox concentration / category=group group=group attrid=group;
xaxis label=" ";
title " ";
input id $ value $7. @15 fillcolor $10. linecolor $8.;
group RT white black
group BR LTGRAY black
define style myfont;
style GraphFonts /
'GraphDataFont' = ("Arial",28pt,bold)
'GraphUnicodeFont' = ("Arial",28pt,bold)
'GraphValueFont' = ("Arial",28pt,bold)
'GraphLabelFont' = ("Arial",28pt,bold)
'GraphFootnoteFont' = ("Arial",28pt,bold)
'GraphTitleFont' = ("Arial",28pt,bold)
'GraphAnnoFont' = ("Arial",28pt,bold);
ods graphics on;
ods rtf file="XXXXXXXXXXXXXXXXXXXX" style=myfont;
ods rtf close;
SAS is headed back to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team.
Interested in speaking? Content from our attendees is one of the reasons that makes SAS Innovate such a special event!
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.