my data looks like
df <- data.frame(Role = c("a","a","b", "b", "c", "c"), Men = c(1,0,3,1,2,4), Women = c(2,1,1,4,3,1))
and when I try to plot a bar graph after I melt this data it only graphs the first value of each common "Role", I want it to add the sum of the values for each role and gender. So men would become c(1+0,3+1,2+4)