I want to add plot total_bill and day as barplot, in which each bar has to split into two sections - smoker or non-smoker. and in each smoker bar, I want to split that into male and female
How to do.
I tried the above code, but it is showing the repeated argument error
Maybe you can try stacking the barplot with one category and splitting it with another.
Or,
you can create another datacolumn that is divided into 4 categories
SM (smoker male)
NSM (non-smoker male)
SF (smoker female)
NSF (non-smoker female)