I have a data.frame and I would like to draw a grouped barplot for two different columns.
Below are the two columns I care about.
str(credit_arff)
$ checking_status : Factor w/ 4 levels "<0",">=200","0<=X<200",..:
$ class : Factor w/ 2 levels "bad","good":
I can draw the barplot for checking_status
by barplot(mydata$checking_status)
(shown below) but how can I draw a barplot so that it represents how many have corresponding value of good
or bad
.
Ideally I would like to have different colure in each bar with each representing good
or bad