I'm trying to make a scatterplot on two time-series variables. However, I want to "lag" one of them, meaning that I'd like to plot (x, y) as (x on t, y on t+1). I'm not sure whether I'm making myself clear, but whatever question please do let me know.
Here's the head of my data:
# A tibble: 6 × 6
`Country Name` `Country Code` Year CrecimientoPBI Inflación CrecimientoBaseMonetaria
<chr> <chr> <chr> <dbl> <dbl> <dbl>
1 Estados Unidos USA 1961 2.3 1.07 8.19
2 Estados Unidos USA 1962 6.1 1.2 8.93
3 Estados Unidos USA 1963 4.4 1.24 9.32
4 Estados Unidos USA 1964 5.8 1.28 9.03
5 Estados Unidos USA 1965 6.4 1.59 8.62
6 Estados Unidos USA 1966 6.5 3.02 4.72
--with CrecimientoBaseMonetaria as my explanatory variable (x), and Inflación as my explained variable (y).