I have the following dataset of credit history.
How to plot the age group (applied for loan) for each gender using ggplot2.
Thanks in advance.
I have the following dataset of credit history.
How to plot the age group (applied for loan) for each gender using ggplot2.
Thanks in advance.
library(ggplot)
german_credit$Sex <- as.factor(german_credit$Sex)
ggplot(german_credit, aes(x = Age)) + geom_histogram() + facet_wrap(~Sex)