I have a table that contains the account balance and marital status of an individual (married, unmarried, divorced). How do I use ggplot()
to plot the balance of each marital status at once?
My current method is not very efficient:
married <- subset(bank[,c("marital","balance")], marital == "married")