1st commit - When there was no trend (i.e. because the data was missing or the well was too recent), the heading contained something like: "NANAm/)", this commit removes that
2nd commit - When there was no trend, we would get a warning message for missing values and the legend contained a reference to the trend line. I assumed that wasn't deliberate (?). This fix omits plotting the trend line if it is missing (therefore no warning message), and omits it from the legend (alternatively you could just use na.rm = TRUE in the plotting command, but I thought this might be the better way to go, let me know if you have a preference).
1st commit - When there was no trend (i.e. because the data was missing or the well was too recent), the heading contained something like: "NANAm/)", this commit removes that
2nd commit - When there was no trend, we would get a warning message for missing values and the legend contained a reference to the trend line. I assumed that wasn't deliberate (?). This fix omits plotting the trend line if it is missing (therefore no warning message), and omits it from the legend (alternatively you could just use na.rm = TRUE in the plotting command, but I thought this might be the better way to go, let me know if you have a preference).