I have two columns of my "Review" dataset that are causing me issues - one "Year" has years formatted like "2001/02". The other "Hour" has the hour of the day formatted like "01-02". Whenever I try and use these columns in graphs, I see "Error: Discrete value supplied to continuous scale". How to I fix this? Sorry if the answer is obvious, I am a total beginner and couldn't find the answer anywhere else.
Here is my code for my "Year" column:
ggplot(review_data, aes(x = YEAR, colour = CAUSE)) +
  geom_point() +
  geom_line() +
  labs(title = "Incidents",
       subtitle = "By year and cause",
       x = NULL,
       y = "Cause") +
  scale_colour_brewer(palette = "Dark2", 
                      labels = c(),
                      name = NULL) +
  theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1))
And for my "Date" column:
ggplot(review_data) = mapping = aes(x = HOUR, fill = NUMBER) +
  geom_histogram(binwidth = 1, colour = "black") +
  scale_fill_brewer(palette = "Dark2", name = NULL) +
  theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1)) +
  labs(title = "Number per hour")
 
    