bcgov / bcgroundwater

An R package to facilitate analysis and visualization of groundwater data from the British Columbia groundwater observation well network
Apache License 2.0
20 stars 4 forks source link

Fix formating for gwl_area_plot #27

Closed steffilazerte closed 6 years ago

steffilazerte commented 6 years ago

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).

ateucher commented 6 years ago

Thanks @steffilazerte - this is great.