I am trying to use the recessionplot to shade recessions on my plot. My date series is just the years from 1970 to 2018. Do I need to convert the dates even though they are just numbers to use the recessionplot?
Here is the code I am using:
legend("A ^ (1/(1-alpha))", "(K/Y) ^ (alpha/(1-alpha))","L/N","Y/N")
title("Growth Accounting for Spain")
Thank you in advance!