I have 2 separate ggplots with the same dates (came from the same file) and I need to show both lines on the same graph
Here is my code:
oilP = data %>%
ggplot(aes(x = date, y = oil)) +
geom_line(color = "green") +
ylab("price")
coalP = data %>%
ggplot(aes(x = date, y = coal)) +
geom_line(color = "red") +
ylab("price")
Any ideas?
I tried ggarrange, but that just gives the plots side by side