OpenLand
Tool for Quantitative Analysis and Visualization of Land Use and Land Cover Change.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 9 DOI reference(s) in README -
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (20.7%) to scientific vocabulary
Keywords
geography
geospatial
intensity-analysis
land-use-and-land-cover-change
luc-maps
lulc
plot
r
rasters
Last synced: 6 months ago
·
JSON representation
Repository
Tool for Quantitative Analysis and Visualization of Land Use and Land Cover Change.
Basic Info
- Host: GitHub
- Owner: reginalexavier
- License: gpl-3.0
- Language: R
- Default Branch: main
- Homepage: https://reginalexavier.github.io/OpenLand/
- Size: 11.4 MB
Statistics
- Stars: 27
- Watchers: 2
- Forks: 9
- Open Issues: 3
- Releases: 4
Topics
geography
geospatial
intensity-analysis
land-use-and-land-cover-change
luc-maps
lulc
plot
r
rasters
Created over 6 years ago
· Last pushed almost 2 years ago
Metadata Files
Readme
License
README.Rmd
---
output: github_document
---
```{r include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# OpenLand
[](https://github.com/reginalexavier/OpenLand/actions)
[](https://app.codecov.io/gh/reginalexavier/OpenLand)
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://CRAN.R-project.org/package=OpenLand)
OpenLand is an open-source R package for the analysis of land use and cover (LUC) time series. It includes support for consistency check and loading spatiotemporal raster data and synthesized spatial plotting. Several LUC change (LUCC) metrics in regular or irregular time intervals can be extracted and visualized through one- and multistep sankey and chord diagrams. A complete intensity analysis according to (Aldwaik and Pontius 2012) is implemented, including tools for the generation of standardized multilevel output graphics.
## Installation
Install the released version of OpenLand from CRAN:
```{r installation1, eval = FALSE}
install.packages("OpenLand")
```
Or install the development version from GitHub with:
```{r installation2, eval = FALSE}
# install.packages("devtools")
devtools::install_github("reginalexavier/OpenLand")
```
## Illustrative Example
This is a basic example which shows how OpenLand works, for a more detailed illustration, please see our [vignettes](https://reginalexavier.github.io/OpenLand/articles/openland_vignette.html).
The OpenLand functionality is illustrated for a LUC dataset of São Lourenço river basin, a major Pantanal wetland contribution area as provided by the 4^th^ edition of the [Monitoring of Changes in Land cover and Land Use in the Upper Paraguay River Basin - Brazilian portion - Review Period: 2012 to 2014](https://www.embrapa.br/pantanal/bacia-do-alto-paraguai) (Embrapa Pantanal, Instituto SOS Pantanal, and WWF-Brasil 2015). The time series is composed by five LUC maps (2002, 2008, 2010, 2012 and 2014). The study area of approximately 22,400 km^2^ is located in the Cerrado Savannah biom in the southeast of the Brazilian state of Mato Grosso.
For processing in the OpenLand package, the original multi-year shape file was transformed into rasters and then saved as a 5-layer `RasterStack` (`SaoLourencoBasin`), available from a public repository [(10.5281/zenodo.3685229)](https://doi.org/10.5281/zenodo.3685230) as an `.RDA` file which can be loaded into `R`.
```{r example}
# Loading the package
library(OpenLand)
```
##### **What is Intensity Analysis?**
Intensity Analysis (IA) is a quantitative method to analyze LUC maps at several time steps, using cross-tabulation matrices, where each matrix summarizes the LUC change at each time interval. IA evaluates in three levels the deviation between observed change intensity and hypothesized uniform change intensity. Hereby, each level details information given by the previous analysis level. First, the **interval level** indicates how size and rate of change varies across time intervals. Second, the **category level** examines for each time interval how the size and intensity of gross losses and gross gains in each category vary across categories for each time interval. Third, the **transition level** determines for each category how the size and intensity of a category’s transitions vary across the other categories that are available for that transition. At each level, the method tests for stationarity of patterns across time intervals (Aldwaik and Pontius 2012).
### Outcomes of intensity analysis
The data is extracted from the rasters with the [`contingencyTable()`](https://reginalexavier.github.io/OpenLand/reference/contingencyTable.html) function which returns a multiple grid information in tables for the next processing steps. Within the OpenLand package, the [`intensityAnalysis()`](https://reginalexavier.github.io/OpenLand/reference/intensityAnalysis.html) function computes the three levels of analysis. It requires the object returned by the `contingenceTable()` function and that the user predefines two LUC categories `n` and `m`. Generally, `n` is a target category which experienced relevant gains and `m` a category with important losses.
```{r include=FALSE}
## editing the category name
SL_2002_2014$tb_legend$categoryName <- factor(c("Ap", "FF", "SA", "SG", "aa", "SF",
"Agua", "Iu", "Ac", "R", "Im"),
levels = c("FF", "SF", "SA", "SG", "aa", "Ap",
"Ac", "Im", "Iu", "Agua", "R"))
## add the color by the same order of the legend,
## it can be the colour name (eg. "black") or the HEX value (eg. #000000)
SL_2002_2014$tb_legend$color <- c("#FFE4B5", "#228B22", "#00FF00", "#CAFF70",
"#EE6363", "#00CD00", "#436EEE", "#FFAEB9",
"#FFA54F", "#68228B", "#636363")
## now we have
SL_2002_2014$tb_legend
```
```{r}
my_test <- intensityAnalysis(dataset = SL_2002_2014, # here the outcome from the `contingenceTable()` function
category_n = "Ap", category_m = "SG")
# it returns a list with 6 objects
names(my_test)
```
The `intensityAnalysis()` function returns `r length(my_test)` objects: `r names(my_test)`.
Here, we adopted an object-oriented approach that allows to set specific methods for plotting the intensity objects. Specifically, we used the S4 class, which requires the formal definition of classes and methods (Chambers 2008).
#### Presentation of an intensity object
In this example we will show an object from ``r class(my_test[[4]])`` class. A ``r class(my_test[[4]])`` object contains three slots: the first contains the colors associated with the legend items as name attributes, the second slot contains a table of the **category level** result _(gain (G~tj~) or loss (L~ti~) values)_ and the third slot contains a table storing the results of a stationarity test.
```{r}
my_test$category_lvlGain
```
#### Plotting an intensity object
Visualizations of the IA results are obtained from the `plot(intensity-object)` function. For more details on the function arguments, please see the documentation of the [`plot()`](https://reginalexavier.github.io/OpenLand/reference/plot.html) method.
```{r cat_level, echo=TRUE, fig.align='center', fig.cap="Gain area outcome - Category level", out.width="80%", dev.args=list(pointsize=10), dpi=150, warning=FALSE}
plot(my_test$category_lvlGain,
labels = c(leftlabel = bquote("Gain Area (" ~km^2~ ")"),
rightlabel = "Intensity Gain (%)"),
marginplot = c(.3, .3), labs = c("Categories", "Uniform intensity"),
leg_curv = c(x = 1, y = .5),
fontsize_ui = 8)
```
### Miscellaneous visualization tools
OpenLand provides a bench of visualization tools of LUCC metrics. One-step transitions can be balanced by net and gross changes of all categories through a combined bar chart. Transitions between LUC categories can be detailed by a circular chord chart, based on the Circlize package (Gu et al. 2014). An implementation of Sankey diagram based on the networkD3 package (Allaire et al. 2017) allow the representation of one- and multistep LUCC between categories. Areal development of all LUC categories throughout the observation period can be visualized by a grouped bar chart.
##### Net and Gross gain and loss
```{r ng_plot, echo=TRUE, fig.align='center', fig.cap="Net Gross Changes 2002 - 2014", out.width="80%", dev.args=list(pointsize=10), dpi=150}
netgrossplot(dataset = SL_2002_2014$lulc_Multistep,
legendtable = SL_2002_2014$tb_legend,
xlab = "LUC Category",
ylab = bquote("Area (" ~ km^2 ~ ")"),
changesLabel = c(GC = "Gross changes", NG = "Net Gain", NL = "Net Loss"),
color = c(GC = "gray70", NG = "#006400", NL = "#EE2C2C")
)
```
##### Chord Diagram (2002 - 2014)
```{r chordDiagram, echo=TRUE, fig.align='center', fig.cap="Chord Diagram 2002 - 2014 (area in km^2^)", dev.args=list(pointsize=9.5), dpi=400}
chordDiagramLand(dataset = SL_2002_2014$lulc_Onestep,
legendtable = SL_2002_2014$tb_legend)
```
##### Sankey Multi Step (2002, 2008, 2010, 2012, 2014)
```{r fig.width=7, fig.height=4}
# sankeyLand(dataset = SL_2002_2014$lulc_Multistep,
# legendtable = SL_2002_2014$tb_legend)
```
```{r sankey_multi, out.width='80%',echo=FALSE,fig.align='center', dpi=300}
knitr::include_graphics("man/figures/sankey_multi.png")
```
#### Other functions
OpenLand enables furthermore the spatial screening of LUCC frequencies for one or a series of raster layers with [`summary_map()`](https://reginalexavier.github.io/OpenLand/reference/summary_map.html) and [`summary_dir()`](https://reginalexavier.github.io/OpenLand/reference/summary_dir.html). The [`acc_changes()`](https://reginalexavier.github.io/OpenLand/reference/acc_changes.html) function returns for a LUC time series the number of times a pixel has changed during the analysed period, returning a grid layer and a table with the percentages of transition numbers in the study area. Here we use the [tmap](https://github.com/r-tmap/tmap) package for plotting the outcomes of the `acc_changes()` function.
```{r mymap, echo=FALSE, fig.cap='Accumulated changes in pixels in the interval 2002 - 2014 at four time points (2002, 2008, 2010, 2012, 2014)', out.width='90%',fig.align='center'}
knitr::include_graphics("man/figures/acc_mymap.png")
```
## References
Aldwaik, Safaa Zakaria, and Robert Gilmore Pontius. 2012. "Intensity analysis to unify measurements of size and stationarity of land changes by interval, category, and transition." Landsc. Urban Plan. 106 (1): 103–14. https://doi.org/10.1016/j.landurbplan.2012.02.010.
Allaire, J J, Christopher Gandrud, Kenton Russell, and C J Yetman. 2017. "networkD3: D3 JavaScript Network Graphs from R." https://cran.r-project.org/package=networkD3.
Chambers, John. 2008. Software for Data Analysis. Statistics and Computing. New York, NY: Springer New York. https://doi.org/10.1007/978-0-387-75936-4.
Embrapa Pantanal, Instituto SOS Pantanal, and WWF-Brasil. 2015. "Mapeamento da Bacia do Alto Paraguai." https://www.embrapa.br/pantanal/bacia-do-alto-paraguai.
Gu, Zuguang, Lei Gu, Roland Eils, Matthias Schlesner, and Benedikt Brors. 2014. "circlize implements and enhances circular visualization in R." Bioinformatics 30 (19): 2811–2.
--------------------------------------------------------------------------------
### CITATION:
Reginal Exavier and Peter Zeilhofer. OpenLand: Software for Quantitative Analysis and Visualization of Land Use and Cover Change. The R Journal, v. 12, n. 2, p. 359–371, 2021. [https://doi.org/10.32614/RJ-2021-021](https://journal.r-project.org/archive/2020/RJ-2021-021/index.html).
Owner
- Name: Réginal Exavier
- Login: reginalexavier
- Kind: user
- Location: São Paulo - Brazil
- Company: Universidade de São Paulo
- Repositories: 1
- Profile: https://github.com/reginalexavier
PhD student in Physical Geography at University of São Paulo (FFLCH/USP)
GitHub Events
Total
- Watch event: 5
- Pull request review event: 1
- Pull request review comment event: 3
Last Year
- Watch event: 5
- Pull request review event: 1
- Pull request review comment event: 3
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Réginal Exavier | r****r@r****m | 218 |
| olivroy | 5****y | 4 |
| PeterZeilhofer | z****r@g****m | 3 |
| Reginal | r****l@y****m | 1 |
| Teun van den Brand | t****d@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 4
- Total pull requests: 7
- Average time to close issues: over 1 year
- Average time to close pull requests: 27 days
- Total issue authors: 3
- Total pull request authors: 3
- Average comments per issue: 1.25
- Average comments per pull request: 0.29
- Merged pull requests: 6
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- rsbivand (2)
- jslingsby (1)
- lime-n (1)
Pull Request Authors
- reginalexavier (6)
- teunbrand (2)
- olivroy (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 204 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
cran.r-project.org: OpenLand
Quantitative Analysis and Visualization of LUCC
- Homepage: https://reginalexavier.github.io/OpenLand/
- Documentation: http://cran.r-project.org/web/packages/OpenLand/OpenLand.pdf
- License: GPL-3
-
Latest release: 1.0.3
published almost 2 years ago
Rankings
Forks count: 11.3%
Stargazers count: 15.1%
Average: 29.4%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Downloads: 55.3%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.4.0 depends
- circlize >= 0.4.8 imports
- dplyr >= 0.8.3 imports
- ggplot2 >= 3.2.1 imports
- grid * imports
- gridExtra >= 2.3 imports
- methods * imports
- networkD3 >= 0.4 imports
- raster >= 3.0.7 imports
- tidyr >= 1.0.0 imports
- covr * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests
- tmap * suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v2 composite
- actions/upload-artifact main composite
- r-lib/actions/check-r-package v1 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
- r-lib/actions/setup-r-dependencies v1 composite
.github/workflows/pkgdown.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
- r-lib/actions/setup-r-dependencies v1 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-r v1 composite
- r-lib/actions/setup-r-dependencies v1 composite