Visualize a continuous variable against a binary variable I want to visualize a continuous variable, BMI index, against a binary variable, heart disease.
I want to check by visualization in my data, if heart disease is more common among higher BMI index cases than lower BMI. I used catplot boxplot:
Plot = sns.catplot(x="heart_disease", y="bmi", kind="box", 
                   data=data);
Plot.fig.suptitle('Correlation between Heart Disease and 
                   BMI index', size=15, y=1.12);

From the result plot, the question to the answer is no. Do you think using boxplot is a good idea? is there another plot type that could do a better job for the question at hand ?


I usually do overlayed histograms.
E.g. https://stackoverflow.com/questions/49533978/multiple-histograms-in-python

