Correlation coefficient vs distance plot for weather stations


I’ve looked everywhere but didn’t find any answer, hope someone can help me here.

I need to make a Correlation Coefficient VS Distance (in Km) plot between 9 weather stations. It would look looks like the following figure:

enter image description here

To do this, I have a time series of daily minimum temperature on 9 weather stations between the period 1980-2016. The .csv file with the data looks like this:

enter image description here

And the location of all the weather stations is in another .csv file that looks like this:

enter image description here

Is there some way to do it easly?

Thanks!