proc format library=work;
value $Serving
'RN' = 'Nadal'
'RF' = 'Federer'
'ND' = 'Djokovic'
'JI' = 'Isner'
;
run ;
*Lets combine the four datasets ;
data goats_isner ;
set isner_serve rafa_serve fed_serve djoker_serve ;
format Serving $Serving. ;
run ;
*Compare the four rallylen in one chart-fix format! ;
proc sgpanel data=goats_isner ;
panelby year ;
histogram rallylen / group=serving dataskin=matte transparency=0.5 ;
label rallylen = "Rally Length" ;
keylegend / valueattrs = (Size=8) ;
title "Rally Length on Serve" ;
run ; My code is above with some output of the data below along with the generated plot. I got marked for spam but I am genuinely stuck on this. The output is cutting short on the legend labels to 4 characters but it reads in fine using the format I created so I am not sure why that is happening. I get "fede" instead of the entire "Federer" as I coded in the plot but my dataset reads it correctly So I am not sure why this is the case. Am a newbie here so I apologize for any lack of clarity in my post
... View more