This function allows you to plot nutrient trends data on ggplot maps.
Expects input of a point shapefile, in either WGS84 or NZTM.
Expects input of a coastline shapefile, defaults to NZ topo coastline.
You can either use included nutrient data or supply your own point data in shapefile format. Similarly you can either use the default included coastline of New Zealand or supply your own polygon in shapefile format.
tp = Total phosphorus
drp = Dissovled reactive phosphorus
nn = Nitrate nitrogen
tn = Total nitrogen
an = ammoniacal nitrogen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.