2
$\begingroup$

Does any one know of any good plots for 2 categorical predictors with 1 continuous response?

Each categorical predictor has 2 levels each.

Thank you

$\endgroup$
  • 2
    $\begingroup$ Can you post a small example dataset for people to work with? Are the categorical responses correlated with each other? How are you modeling them? $\endgroup$ – gung - Reinstate Monica Mar 14 '17 at 1:53
2
$\begingroup$

Use box plots to get an information-dense visualisation. I see two options to approach this:

  1. Plot the continuous dependent variable over each level of each predictor (four boxes)
  2. Generate an interaction term between your categorical variables, so that you get a variable with four levels, one for each combination of predictors. Plot the continuous dependent variable over the interaction term.
$\endgroup$
1
$\begingroup$

Could it be a bar plot like this one? You would have two sets of bars with two different colors in each set. Here is how it is done in R's ggplot.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.