Description Usage Arguments Value Examples
The mean target achievement (MTA) function determines the degree of representation target achievement as a value between 0 and 1.
1 |
data |
data is a dataframe with three columns: feature, ai, and pi. feature is the name of the conservation features (e.g. ecoregions, habitats, species), ai is the total area/amount of conservation features, and pi is the protected area/amount of conservation features. |
target |
target is the representation target as a value between 0 and 1 (0 is zero protection and 1 is 100% protection). |
plot |
plots the target and the protected amount of conservation features ordered from low to high. Defaults to TRUE. |
mta | Mean Target Achievement value (0 is no achievement and 1 is 100% achievement of representation target) | |
target | representation target | |
N | number of conservation features | |
proportion_protected | protected proportion of conservation features as a value from 0 to 1, sorted from low to high |
1 2 3 4 5 6 7 8 | # Generate input data
feature <- paste("Ecoregion",1:10) #conservation feature names
ai <- c(41,223,1053,520,230,303,343,2684,6507,1010) #total amount of conservation features
pi <- c(0,53,282,237,70,5,123,606,2695,496) #protected amount of conservation features
data <- data.frame(feature,ai,pi)
# Run the mta function for representation target 0.5 (50% protection of each feature)
mta(data,0.5,plot=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.