I am trying to plot a bar graph of the frequency of injuries in a season across multiple seasons.
I have followed regular procedures for creating a ggplot, but the aes function isn't recognising the 'Season' column in the injuries data frame.
injuries <- read.csv(file = "injuries_2010-2020_csv.csv", header = FALSE) colnames(injuries) <- c("Season", "Date", "Team", "Relinquished", "Notes") ggplot(injuries, aes(x = Season)) + geom_bar(fill = "#EB9234") + labs(x="Season", y = "Total Injuries")
I get an "object 'Season' not found" error, but I am very unsure why this is the case.
I can't seem to figure out