I want to draw a stacked or grouped bar plot saying against each individual what is valid/real_valid and Invalid. I tried so many things googling but could not conclude that.
My real data look like:
name valid real_valid Invalid
Parvathi, Sowmya g 59 10 9
Joshi, Srikanth r 34 10 15
Satyanaik, Shivaru 32 16 4
Kumar, Rajesh 28 6 16
Shrigiri, Girish s 27 21 1
Vasandani, Dhanu 13 3 8
And here is some code to create the table:
name <- c("Parvathi", "Joshi", "Satyanaik", "Kumar", "Girish", "Vasandani")
valid <- c(59, 34, 32, 28, 27, 13)
real_valid <- c(10, 10, 16, 6, 21, 3)
Invalid <- c(9, 15, 4, 16, 1, 8)
df <- data.frame(name, valid, real_valid, Invalid)