landscapetools
📦 R package for some of the less-glamorous tasks involved in landscape analysis 🌏
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 4 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.1%) to scientific vocabulary
Keywords
landscape
landscape-ecology
r
r-package
raster
rstats
visualization
workflow
Keywords from Contributors
geo
neutral-landscape-model
landscape-metrics
agent-based-modeling
individual-based-modelling
netlogo
visualisation
gdal
point-pattern-analysis
proj
Last synced: 6 months ago
·
JSON representation
Repository
📦 R package for some of the less-glamorous tasks involved in landscape analysis 🌏
Basic Info
- Host: GitHub
- Owner: ropensci
- License: gpl-3.0
- Language: R
- Default Branch: master
- Homepage: https://docs.ropensci.org/landscapetools
- Size: 21.7 MB
Statistics
- Stars: 49
- Watchers: 12
- Forks: 16
- Open Issues: 4
- Releases: 0
Topics
landscape
landscape-ecology
r
r-package
raster
rstats
visualization
workflow
Created almost 8 years ago
· Last pushed 10 months ago
Metadata Files
Readme
Contributing
License
Code of conduct
README.Rmd
---
output:
github_document:
html_preview: false
---
[](https://github.com/ropensci/landscapetools/actions)
[](https://codecov.io/gh/ropensci/landscapetools)
[](https://www.tidyverse.org/lifecycle/#maturing)
[](https://cran.r-project.org/package=landscapetools)
[](http://cran.rstudio.com/web/packages/landscapetools/index.html)
[](https://github.com/ropensci/onboarding/issues/188)
[](https://doi.org/10.1111/2041-210X.13076)
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# landscapetools
`landscapetools` provides utility functions for some of the less-glamorous tasks involved
in landscape analysis:
#### Utilities:
- `util_binarize`: Binarize continuous raster values, if > 1 breaks are given, return a RasterBrick.
- `util_classify`: Classify a raster into proportions based upon a vector of class weightings.
- `util_merge`: Merge a primary raster with other rasters weighted by scaling factors.
- `util_raster2tibble`, `util_tibble2raster`: Coerce raster* objects to tibbles and vice versa.
- `util_rescale`: Linearly rescale element values in a raster to a range between 0 and 1.
- `util_writeESRI`: Export raster objects as ESRI asciis (with Windows linebreaks).
#### Visualization
- `show_landscape`: Plot a Raster* object with the landscapetools default theme (as ggplot) or multiple raster (RasterStack, -brick or list of raster) side by side as facets.
- `show_shareplot`: Plot the landscape share in subsequential buffers around a/multiple point(s) of interest
#### Themes:
- `theme_nlm`, `theme_nlm_grey`: Opinionated ggplot2 theme to visualize raster (continuous data).
- `theme_nlm_discrete`, `theme_nlm_grey_discrete`: Opinionated ggplot2 theme to visualize raster (discrete data).
- `theme_faceplot`: Opinionated ggplot2 theme to visualize raster in a facet wrap.
## Installation
You can install the released version from CRAN with:
```r
install.packages("landscapetools")
```
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("ropensci/landscapetools")
```
## Utilities
```{r load_libraries_hidden, eval=TRUE, echo=FALSE, message=FALSE, results='hide'}
library(landscapetools)
```
### Classify
```{r fig.retina=2, message=FALSE}
# Classify the landscape into land uses
classified_landscape <- util_classify(fractal_landscape,
n = 3,
level_names = c("Land Use 1",
"Land Use 2",
"Land Use 3"))
show_landscape(classified_landscape, discrete = TRUE)
```
### Merge
```{r fig.retina=2, message=FALSE}
# Merge all landscapes into one
merged_landscape <- util_merge(fractal_landscape,
c(gradient_landscape, random_landscape),
scalingfactor = 1)
# Plot an overview
merge_vis <- list(
"1) Primary" = fractal_landscape,
"2) Secondary 1" = gradient_landscape,
"3) Secondary 2" = random_landscape,
"4) Result" = merged_landscape
)
show_landscape(merge_vis)
```
## See also
In the examples above we make heavy use of the `NLMR` package.
Both packages were developed together until we split them into pure landscape functionality and utility tools.
If you are interested in generating neutral landscapes via a multitude of available algorithms take a closer look at the [NLMR](https://github.com/ropensci/NLMR/) package.
## Meta
* Please [report any issues or bugs](https://github.com/ropensci/landscapetools/issues/new/).
* License: GPL3
* Get citation information for `landscapetools` in R doing `citation(package = 'landscapetools')`
* We are very open to contributions - if you are interested check [Contributing](CONTRIBUTING.md).
* Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
[](http://ropensci.org)
Owner
- Name: rOpenSci
- Login: ropensci
- Kind: organization
- Email: info@ropensci.org
- Location: Berkeley, CA
- Website: https://ropensci.org/
- Twitter: rOpenSci
- Repositories: 307
- Profile: https://github.com/ropensci
GitHub Events
Total
- Issues event: 3
- Watch event: 2
- Delete event: 1
- Issue comment event: 7
- Push event: 5
- Pull request event: 2
Last Year
- Issues event: 3
- Watch event: 2
- Delete event: 1
- Issue comment event: 7
- Push event: 5
- Pull request event: 2
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| marcosci | s****o@g****m | 111 |
| mattfrit | m****c@g****e | 18 |
| Sebastian Hanss | s****n@h****o | 8 |
| jn | t****i@g****m | 8 |
| mhesselbarth | m****h@g****m | 7 |
| GitHub Actions | a****s@g****m | 3 |
| Benrnardo Niebuhr | b****m@y****r | 3 |
| Marco Sciaini | m****i@r****e | 3 |
| JoshOBrien | j****n@g****m | 2 |
| Maximilian Hesselbarth | m****h@m****l | 1 |
| GitHub | n****y@g****m | 1 |
| Laura Jane Graham | l****m@g****m | 1 |
| Jeroen Ooms | j****s@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 22
- Total pull requests: 22
- Average time to close issues: 5 months
- Average time to close pull requests: 3 months
- Total issue authors: 10
- Total pull request authors: 9
- Average comments per issue: 4.27
- Average comments per pull request: 0.64
- Merged pull requests: 19
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 2
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 2
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- Nowosad (5)
- marcosci (5)
- bniebuhr (3)
- maelle (2)
- jeroen (2)
- GwynCase (1)
- nldoc (1)
- garciacallejas (1)
- wegmann (1)
- poroc300 (1)
Pull Request Authors
- marcosci (7)
- bitbacchus (4)
- mhesselbarth (3)
- Nowosad (2)
- bniebuhr (2)
- katrinleinweber (1)
- Bisaloo (1)
- JoshOBrien (1)
- laurajanegraham (1)
Top Labels
Issue Labels
enhancement (5)
help wanted (1)
bug (1)
question (1)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 306 last-month
- Total docker downloads: 88,618
- Total dependent packages: 1
- Total dependent repositories: 5
- Total versions: 3
- Total maintainers: 1
cran.r-project.org: landscapetools
Landscape Utility Toolbox
- Homepage: https://ropensci.github.io/landscapetools/
- Documentation: http://cran.r-project.org/web/packages/landscapetools/landscapetools.pdf
- License: GPL-3
- Status: removed
-
Latest release: 0.5.0
published almost 7 years ago
Rankings
Docker downloads count: 0.0%
Forks count: 4.6%
Stargazers count: 7.1%
Average: 11.6%
Dependent repos count: 13.0%
Dependent packages count: 18.1%
Downloads: 27.0%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.1.0 depends
- Rcpp * imports
- ggplot2 * imports
- raster * imports
- tibble * imports
- covr * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests