0

Need some help getting this bar chart to form. I get errors about not being able to count characters. Trying to get it to look like this:

enter image description here

ggplot(Interview_State_Data,aes(x = Interview_Stage, 
                          y = as.factor(Level_Simplified), 
                          fill = Level_Simplified)) +
  

  geom_bar(stat="identity", position="dodge")


structure(list(Interview_Stage = c("Third Onsite", "Recruiter Phone Screen", 
"Second Onsite", "Third Onsite", "Recruiter Phone Screen", "Second Onsite"
), Level_Simplified = c("MR", "IC", "MR", "MR", "MR", "MR")), row.names = c(NA, 
-6L), class = c("tbl_df", "tbl", "data.frame"))
Koolakuf_DR
  • 467
  • 4
  • 16

1 Answers1

1
ggplot(Interview_Stage_Data,aes(x = Interview_Stage, 
                      #   y = Level_Simplified, #
                          fill = Level_Simplified)) +
  

  geom_bar(stat="count", position="dodge")

Changed geom_bar(stat="identity" to geom_bar(stat="count" and removed y = Level_Simplified from the code and it ran perfect.

Thanks to @markus

Koolakuf_DR
  • 467
  • 4
  • 16