[Solved] Multiple plots in R with time series


Based on your comments you might be looking for:

library(tidyverse)

plot1 <- df %>% gather(key = measure, value = value, -year) %>%
ggplot(aes(x = year, y = value, color = measure))+
geom_point()+
geom_line()+
facet_wrap(~measure)

plot1

enter image description here

The biggest points here are gather and facet_wrap. I recommend the following two links:

https://ggplot2.tidyverse.org/reference/facet_grid.html

https://ggplot2.tidyverse.org/reference/facet_wrap.html

solved Multiple plots in R with time series