Home > database >  Creating plot in ggplot2 from manipulated data
Creating plot in ggplot2 from manipulated data

Time:12-02

I was hoping someone could help me out here. I'm working on a college project and have manipulated a dataset to give me the figures I want, but I'm struggling to figure out how to turn this into a readable barplot with ggplot2.

The dataset I'm using is widely available here: enter image description here

Or just using your vg...things can be done like

df <- data.frame(sums = c(vg_action_s, vg_sports_s, vg_shooter_s, vg_rpg_s, vg_racing_s),
                 Genre = c("Action", "Sports", "Shooter", "Role-Playing", "Racing"))
ggplot(df, aes(x = Genre, y = sums, fill = Genre))  
  geom_col()
  • Related