Description Usage Arguments Details Examples
View source: R/make.nt.plot_function.R
This function allows you to plot nutrient trends data on ggplot maps.
1 | plot.trends(pt_dat, coastline = spatinz::coastline)
|
pt_dat |
Expects input of a point shapefile, in either WGS84 or NZTM. |
coastline |
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.
Included data:
tp = Total phosphorus
drp = Dissovled reactive phosphorus
nn = Nitrate nitrogen
tn = Total nitrogen
an = ammoniacal nitrogen
1 2 | plot.trends(tp)
plot.trends(drp) + ggplot2::labs(title = "Dissolved reactive phosphorus")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.