My dataset has this form:
name = c("h", "s", "i", "s", "o","R")
value = c(37, 27, 20, 20, 5, 5)
df = data.frame(name, value)
I tried every idea that I could, but I think that I am missing some basic knowledge about how to solve it. adding stats = "count"
ggplot(df,aes(name) ) +
geom_bar(stat = "count", show.legend = TRUE)
I am obtaing or: - A plot with all the columns - Error messages
My expected solutions is: A barplot using ggplot, with 4 columns as "h", "s", "i & s", "o & R"
And in y-axis, each of the columns with the next values: 37, 27, 20, 5
