ppendemic

Plantas endémicas del Perú

https://github.com/paulesantos/ppendemic

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
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.8%) to scientific vocabulary

Keywords

endemic peru plants
Last synced: 9 months ago · JSON representation

Repository

Plantas endémicas del Perú

Basic Info
Statistics
  • Stars: 9
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 3
Topics
endemic peru plants
Created over 5 years ago · Last pushed about 1 year 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%"
)
library(tidyverse)
```

# ppendemic 


[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html)
[![CRAN status](https://www.r-pkg.org/badges/version/ppendemic)](https://CRAN.R-project.org/package=ppendemic)
[![](http://cranlogs.r-pkg.org/badges/grand-total/ppendemic?color=green)](https://cran.r-project.org/package=ppendemic)
[![](http://cranlogs.r-pkg.org/badges/last-week/ppendemic?color=green)](https://cran.r-project.org/package=ppendemic)
[![Codecov test coverage](https://codecov.io/gh/PaulESantos/ppendemic/branch/main/graph/badge.svg)](https://app.codecov.io/gh/PaulESantos/ppendemic?branch=main)
[![DOI](https://zenodo.org/badge/336340798.svg)](https://zenodo.org/badge/latestdoi/336340798)
[![R-CMD-check](https://github.com/PaulESantos/ppendemic/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/PaulESantos/ppendemic/actions/workflows/R-CMD-check.yaml)


## Overview

This package offers convenient access to a new and extensive database containing a list of `r nrow(ppendemic::ppendemic_tab14)` endemic plant species found in Peru. This comprehensive collection provides detailed botanical information, including accepted names, family, genus, species, infraspecific taxonomy, authorship, publication details, and temporal information including both actual and nominal publication years for each species.

The construction of the `ppendemic` package is built upon valuable data sourced from the renowned **World Checklist of Vascular Plants (WCVP)** database. The WCVP is an international collaborative programme initiated in 1988 by Rafaël Govaerts that provides high-quality expert-reviewed taxonomic data on all vascular plants. As a highly authoritative resource updated daily, WCVP offers comprehensive information on plant taxonomy and occurrence worldwide, serving as the taxonomic backbone for World Flora Online (WFO) and being incorporated into the Catalogue of Life Checklist via GBIF. Leveraging this data, the ppendemic package aims to present an up-to-date and novel compilation of Peru's endemic plant species, tailored to the diverse ecosystems of the region.

By incorporating meticulously curated data from WCVP following the International Code of Nomenclature for algae, fungi, and plants (ICN), this package offers users a reliable and accurate resource to explore, analyze, and gain deeper insights into the rich diversity of Peru's endemic flora. The latest version (V-14, dated 28-05-2025) includes enhanced temporal bibliographic information with sophisticated year extraction capabilities, distinguishing between actual and nominal publication years for improved citation accuracy.

Representing a significant advancement in our understanding of Peru's endemic plant species, the ppendemic package update the previously known list of 5,507 species presented in the Red Book of Endemic Plants of Peru, bringing the total to an impressive `r nrow(ppendemic::ppendemic_tab14)` species. This substantial increase in documented endemic species is a testament to the continuous integration of updated taxonomic data and the commitment to presenting the most current information available. With this expanded and current database, researchers, conservationists, and nature enthusiasts alike can now delve into a more comprehensive and accurate account of Peru's unique and diverse plant biodiversity.

The database spans a total of `r length(unique(ppendemic::ppendemic_tab14$family))` families, with particular richness observed in the `r names(rev(sort(table(ppendemic::ppendemic_tab14$family))))[1:10]` families, all of which boast the highest number of endemic species in Peru. The enhanced dataset now includes `r sum(ppendemic::ppendemic_tab14$has_different_years, na.rm = TRUE)` records where actual and nominal publication years differ, providing valuable insights into historical botanical publishing practices.


```{r echo=FALSE, message=FALSE}
library(tidyverse)
ppendemic::ppendemic_tab14 |> 
  group_by(family) |> 
  summarise(n_especies = n_distinct(taxon_name)) |> 
  arrange(desc(n_especies)) |> 
  top_n(10) |> 
  ggplot(aes(fct_reorder(family, n_especies, .desc = TRUE),
             n_especies)) +
  geom_col() +
  labs(x = "Families",
       y = "Number of species",
       title = "Top 10 Families with Most Endemic Species in Peru",
       subtitle = paste("Based on", nrow(ppendemic::ppendemic_tab14), "endemic species records (Version V-14)")) +
  scale_x_discrete(guide = guide_axis(n.dodge = 2)) +
  theme_bw() +
  theme(plot.title = element_text(hjust = 0.5),
        plot.subtitle = element_text(hjust = 0.5))
```

## Installation

You can install the `ppendemic` package from CRAN using:

```r
install.packages("ppendemic")
# or
pak::pak("ppendemic")
```

Also you can install the `ppendemic` package from GitHub using the following command:

```r
pak::pak("PaulESantos/ppendemic")
```


## Getting Started

After installing the `ppendemic` package, you can load it into your R session using:

```{r}
library(ppendemic)

```

- Use `is_ppendemic()` to check if taxa are endemic

```{r}
splist <- c("Aa aurantiaca", 
             "Aa aurantiaaia",
             "Werneria nubigena", 
             "Dasyphyllum brasiliense var. barnadesioides",
             "Miconia firma",
             "Festuca densiflora")
is_ppendemic(splist)

```

- The `is_ppendemic()` function is designed to work seamlessly with tibbles, allowing users to easily analyze and determine the endemic status of species within a tabular format.

```{r}

tibble::tibble(splist = splist) |> 
  dplyr::mutate(endemic = is_ppendemic(splist))

```


## Citation

To cite the `ppendemic` package, please use:

```{r}
citation("ppendemic")
```

Owner

  • Name: Paul Efren
  • Login: PaulESantos
  • Kind: user
  • Location: Cusco - Peru

Plant ecology and R programming.

GitHub Events

Total
  • Push event: 8
Last Year
  • Push event: 8

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 83
  • Total Committers: 1
  • Avg Commits per committer: 83.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 27
  • Committers: 1
  • Avg Commits per committer: 27.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
PaulESantos p****s@g****m 83

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total 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
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
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 597 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 6
  • Total maintainers: 1
cran.r-project.org: ppendemic

A Glimpse at the Diversity of Peru's Endemic Plants

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 597 Last month
Rankings
Dependent packages count: 28.6%
Dependent repos count: 35.1%
Average: 50.7%
Downloads: 88.3%
Maintainers (1)
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • crayon * imports
  • dplyr * imports
  • ggplot2 * imports
  • purrr * imports
  • tidyr * imports
  • knitr * suggests
  • rmarkdown * suggests