A lag plot is a scatter plot of a time series against a lag of itself. It helps
in visualizing the temporal dependence between observations by plotting the values
at time t on the x-axis and the values at time t + lag on the y-axis.
Parameters:
seriesSeries
The time series to visualize.
lagint, default 1
Lag length of the scatter plot.
axMatplotlib axis object, optional
The matplotlib axis object to use.
**kwds
Matplotlib scatter method keyword arguments.
Returns:
matplotlib.axes.Axes
The matplotlib Axes object containing the lag plot.