View source: R/giniFootprint.r
giniFootprint | R Documentation |
gini index of patchniness from a fisheryFootprint, this assumes fishery footprint boxes can change
giniFootprint(x, y = NULL, plot = F)
x |
: footprint metric per grid |
y |
: area of grid |
plot |
: makes the Lorenz plot if set to |
estimate of gini
Adam Cook, Adam.Cook@dfo-mpo.gc.ca
x=c(0, 0, 0, 0, 0, 0.25, 1.81, 2.52, 2.6, 3.68, 7.58, 10.07, 13.33, 13.33, 24.99)
y=c(1,1,1,1,2,2,2,3,3,1,1,2,3,4,5)
giniFootprint(x,plot=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.