I would like to plot exactly this:
df <- data.frame("col1" = c('a', 'b', 'a'), "col2" = c(1, 2, 3))
barplot(df$col2, names.arg = df$col1)
but with ggplot2
library. geom_bar()
or geom_col()
everytime groups col1
categories for me.
Thank you very much for all answers.