R script to generate simple line plot from distance output