Package: openNCAI 0.1.0

Kate OHara

openNCAI: Calculates a Natural Capital Assets Index

Calculates a regional natural capital assets index (NCAI) following the methodology designed by NatureScot for Scotland as described in Albon, Balana, Brooker & Eastwood (2014) <https://www.nature.scot/sites/default/files/2025-06/naturescot-commissioned-report-751.pdf> and McKenna et al. (2019) <doi:10.1016/J.ECOLIND.2019.105645>. Processes habitat extent and condition data alongside metadata and weighting systems to produce a yearly single figure indexed relative to a base-year value of 100.

Authors:Kate O'Hara [aut, cre]

openNCAI_0.1.0.tar.gz
openNCAI_0.1.0.zip(r-4.7)openNCAI_0.1.0.zip(r-4.6)openNCAI_0.1.0.zip(r-4.5)
openNCAI_0.1.0.tgz(r-4.6-any)openNCAI_0.1.0.tgz(r-4.5-any)
openNCAI_0.1.0.tar.gz(r-4.7-any)openNCAI_0.1.0.tar.gz(r-4.6-any)
openNCAI_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
openNCAI/json (API)

# Install 'openNCAI' in R:
install.packages('openNCAI', repos = c('https://oharakate.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/oharakate/openncai/issues

Datasets:

On CRAN:

Conda:

forth2ogeospatialhabitat-conditionhabitat-extentmeasuring-natural-capitalnatural-capitalnatural-capital-assetsncaiopen-scienceopen-source

6.00 score 3 stars 7 scripts 329 downloads 3 exports 36 dependencies

Last updated from:0d2e720a45. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE166
source / vignettesOK215
linux-release-x86_64NOTE159
macos-release-arm64NOTE112
macos-oldrel-arm64NOTE158
windows-develNOTE110
windows-releaseNOTE93
windows-oldrelNOTE116
wasm-releaseOK118

Exports:create_ncai_templateget_ncairead_ncai_template

Dependencies:cellrangerclicpp11crayondplyrgenericsgluehmsjanitorlifecyclelubridatemagrittropenxlsxpillarpkgconfigprettyunitsprogresspurrrR6Rcppreadxlrematchrlangslidersnakecasestringistringrtibbletidyrtidyselecttimechangeutf8vctrswarpwithrzip

Replicating Scotland's NCAI
Introduction | Setup | Accessing Package Data | Understanding The Required Data Inputs | Metadata | Environmental Measurements | Weighting Scores | Data expectations | Calculating The Overall Index | Generating Breakdowns By Service Type or Broad Habitat | Build the plot | Basic lines | Point marker for overall line to distinguish trend | Fix the Y scale to match the 90-110 range | Consistent X scale | Labels | Classic theme (solid axis lines, no grid) | Minimal centering for the title | Prepare the data: | Build the plot: | Lines for all habitats | Diamond marker on the overall trend line | We filter by 'breakdown' because that remains "overall" internally | Fix the Y scale | The requested classic theme | Digging Deeper - Accessing Elements of the Calculation Process | 1. Prepare the data | Extract years and values into a long-format data frame | Calculate correlations for the annotation | Pivot to long format for ggplot | 2. Create the ggplot

Last update: 2026-05-19
Started: 2026-02-05

openNCAI in Brief
Learn more | Details of the bundled data objects | Metadata objects | Environmental measurements objects | Weighting objects

Last update: 2026-05-08
Started: 2026-05-03

Using openNCAI's Data Entry Templates
Introduction | Step 1: Assembling the metadata | Step 2: Creating the data input spreadsheet | Step 3: Read in data from the completed template

Last update: 2026-05-08
Started: 2026-05-02