Question: You are given a data set, denoted by df, containing the following variable names: ID, age, Sex, Income, disability and Race. You are asked to
You are given a data set, denoted by df, containing the following variable names: ID, age, Sex, Income, disability and Race. You are asked to generate basic box-plots by looking at how Income differs based on Sex. Which of the following statements could you use? geom_boxplot() + ggplot(df, aes(x = Sex, y = Income)) geom_boxplot (df, aes(x = Income, y = Sex)) ggplot(df, aes(x = Sex, y = Income)) + geom_boxplot() ggplot(df, aes(x = Sex, y = Income)) + boxplot()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
