hi Rick, my table is following: soil types are serpentine and not serpentine, leaves in these soils are pubescent and smooth. So, it's two variables with two categories each.
Soil Pubescent Smooth
Serpentine 12 22
Not Serpentine 16 50

I want to do it using input and proc sgplot so that I can get relative frequency of the leaves types in the two soils.
I am using the following code:
data ecology;
input soil $ leaf $ count; datalines;
serpentine pubescent 12
serpentine smooth 22
notserpentine pubescent 16
notserpentine smooth 50
; run;

proc sgplot data=ecology;
vbar soil / group=leaf stat=percent groupdisplay=cluster;
run;

But the bar graph is showing all the percentage same(24%). Can you please tell me what is the mistake I am doing? Thanks.