In my effort to get one unified legend, that is, to get all of the variables in one line across the bottom, I modified Rob's code above. It's not an elegant solution. I am open to suggestions for a better way to do this. data sample; do cats='Cheetara','Panthro','Tygra'; do xvar=1 to 10; yvar1=ranuni(123)*1000; yvar2=ranuni(123)*100; output; end; end; run; symbol1 v=dot i=join c=blue h=1 ; options nocenter; legend1; legend2; legend1 noframe label=('' ) across=4 down=1 position=(bottom center outside) origin=(10 pct ,1 pct) value=('Cheetara' 'Panthro' 'Tygra' ' ') shape=bar(.9,1) mode=share; legend2 noframe label=('' ) across=1 down=1 position=(bottom center outside) origin=(51 pct ,1 pct) value=('YVar') shape=symbol(1.2,1) mode=share; axis2 origin=(, 20 pct); proc gbarline data=sample; bar xvar / discrete sumvar=yvar1 subgroup=cats maxis=axis2 legend=legend1; plot / sumvar=yvar2 legend=legend2; run; quit;
... View more