How can I add more than one column to the barplot using ggplot?
df = data.frame(c("player 1", "player 2", "player 3"),c(1,2,3), c(5,6,7), c(8,9,10))
names(df) = c("player","game 1","game 2", "game 3")
player game 1 game 2 game 3
-----------------------------------
player 1 1 5 8
player 2 2 6 9
player 3 3 7 10
barplot(colSums(df[,2:4]))
In gglot am not sure how to add more than one x axis aesthetics and y axis is their sum. For example for the above data frame I need to create a barplot with three x axis variable as game 1, game 2 and game 3 and add a label to each bar which is the sum of each x axis variable by player.
please help.


