I try to plots the differnces for Males and females of differentes ages in function of their expenses.
I want to create categories 1= Age<25, 2= Age25-45, 3= Age>45, 4= Age 45-55, 5=Age >55
ggplot(Adv.csv, aes(Age<25,AveMonthSpend)) + geom_boxplot(aes(color =Gender))
ggplot(Adv.csv, aes("Age 25-45",AveMonthSpend)) + geom_boxplot(aes(color =Gender))
ggplot(Adv.csv, aes(Age>45,AveMonthSpend)) + geom_boxplot(aes(color =Gender))
ggplot(Adv.csv, aes("Age 45-55",AveMonthSpend)) + geom_boxplot(aes(color =Gender))
ggplot(Adv.csv, aes(Age>55,AveMonthSpend)) + geom_boxplot(aes(color =Gender))
I want to put all these plots in the same graphic to compare the results Source: https://www.kaggle.com/philboaz/kernel8523b5e9dc/edit
> 45
and then45-55
? – AntoniosK