'What code could recreate this excel bar graph in R? (Don't worry about the positive.or.negative column)

Here is the table in Excel:

Table of data and graph in Excel

Here is my head(df) in R:

Head(df) in R

Here is my Code:

##Import CSV
df<-read.csv("Sentiment Matrix.csv")
##Check top of df
> dput(head(df))
structure(list(Journey.Area = c("Installing", "Using Product", 
"Installing", "Delivery", "Installing", "Delivery"), Experience.Framework = c("People/Associate", 
"Execution", "People/Associate", "Execution", "People/Associate", 
"People/Associate"), Postive.or.Negative = c(1L, 0L, 1L, 0L, 
0L, 1L)), row.names = c(NA, 6L), class = "data.frame")

##Plot????
r


Solution 1:[1]

Stack Overflow is a great tool, but the people here needs that you "help us help you". Please consider editing your question.

That said, you could use the great ggplot2 package:

library(ggplot2)

ggplot(df, aes(x = Journey.Area, y = Positive.or.Negative, fill = Experience.Framework))+
       geom_col()+
       coord_flip()

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 PavoDive