Sorts different categories (stores) A-H into black shirts sold and non-black shirts sold:
1 (for A-H)
0.8600394
0.5191401
0.5200601
0.1275694
0.4371994
0.4352312
0.4994585
0.08854391
0 (for A-H)
0.6368297
0.4958072
0.4068714
0.3631703
0.3498011
0.2870286
0.4980114
0.05199099
In R: I would like to plot a graph, in which I show all categories on the x-axis, and for each I show 2 bars, one for black shirts mean, and one for non-black shirts mean. Anybody can help on how to do that please? Thank you!
To plot it from the step below for my data would work (this is from a different question answered)
dat <- data.frame(country=c('USA','Brazil','Ghana','England','Australia'), Stabbing=c(15,10,9,6,7), Accidents=c(20,25,21,28,15), Suicide=c(3,10,7,8,6))
dat.m <- melt(dat, id.vars='country').
I thought it might be more elegant to plot directly from the table.