I am examining the relationship between a categorical variable and a quantitative one. For the test of linearity, I was told that I must use scatter plots. However, this is no longer applicable if one of the variables is categorical. So I resorted to box plots. Now, I have difficulty identifying/checking if there is a linear relationship among males and females (gender is the categorical variable) in terms of their side by side box plots. Can anyone help me with this?