棒グラフは、geom_bar()で作図できるが、geom_col()のほうがシンプルである。
ggplot(data = df) + geom_col(aes(x = X, y = Y))
geom_bar()は,stat='identity'を指定しないと、データの数を要素として処理してしまう。