Know the GUI of R and Rstudio softwares
Create a project R
Install and load packages
Import data into the RStudio software
Use basic functions of a package
The ethnobotanyR package can be used to calculate common quantitative ethnobotany indices to assess the cultural significance of plant species based on informant consensus.
The goal is to provide an easy-to-use platform for ethnobotanists to calculate quantitative ethnobotany indices ;
To be More productive ;
To be opened to current research methodologies and skills.
The package closely follows two papers, one by Tardio and Pardo-de-Santayana (2008) and another by Whitney et al. (2018).
Users are highly encouraged to read the theory papers of Albuquerque et al. (2019) and Gaoue et al. (2017).
Tsioutsiou E E, Giordani P, Hanlidou E, Biagi M, De Feo V, and Cornara L (2019), Ethnobotanical Study of Medicinal Plants Used in Central Macedonia, Greece. Evidence-Based Complementary and Alternative Medicine. 2019: 1-22.
The Package
Data format
Package functions
Visualize ethnobotanyR results
Demo
The field of study that analyzes the results of indigenous manipulations of plants material together with the cultural context in which the plants are used, is called Ethnobotany (Balick et Cox, 1996)
Cultural knowledge ;
Anthropology ;
Archeology ;
Economic ;
New Drug discovery ;
_ …
What are the conservation and livelihood implications of plant use?
Biodiversity conservation (Gaoue et al., 2017)
walk-in-the-woods ;
Show and tell
“construction”, “food”, “medicine”, “technology”, “firewood” and “other”.
gastrointestinal disorders (GI): (diarrhea, nausea, vomiting, stomach ache, gastric problems, loss of appetite, colic, flatulence, dysentery);
dermatological diseases (DO): (skin burns, skin spots, skin rashes, boils, cut, wounds, hair problems, ectoparasites);
urogenital and gynecological problems (UGP): (sexual problems including frigidity, lack of libido, infertility, gonorrhea, diuretic, aphrodisiac, menstrual disorders);
skeletomuscular disorders (SD);
internal medical diseases (IM): (diabetes, cancers, and tumors, hypertension, piles/hemorrhoids);
respiratory-nose, ear, oral/dental, throat problems (RT): (asthma, nose bleeding, sinusitis, earache, throat shore, dental problems);
and others (OT) (motion sickness). (Jadid et al., 2020)
Cultural Diseases and Disorders, and Ritual/Magical Uses (Gruca et al., 2014)
13 disease categories
Gastrointestinal diseases ;
Malaria ;
General pathology symptoms (Headache, tiredness, cold, insomnia, fatigue) ;
Dermatosis (Skin disorders, wound healing) ;
Respiratory diseases (Respiratory disorder, sinusitis, cough) ;
Hemorrhoids ;
Internal organ diseases (Liver diseases, kidney diseases) ;
Cardiovascular diseass (Heart aches, control of heartbeat, hypertension) ;
Infections (excl. malaria) (Dental infections, eye infections) ;
Child diseases (Umbilical cord treatment, children fears, growth retardation) ;
Urogenital diseases (Syphilis,prostate, sexual impotence) ;
Arthritis (Rheumatism and gout)
Blood diseases (Sickle cell disease, anemia) (Ouédraogo1 et al, 2020)
Quantitative ethnobotany may be defined as “the application of quantitative techniques to the direct analysis of contemporary plant use data”.
Data collection, processing and interpretation.
Such quantitative approaches aim to describe the variables quantitatively and analyse the observed patterns in the study (Höft et al. 1999).
Script Mode :
install.packages(“ethnobotanyR”)
https://cran.r-project.org/web/packages/ethnobotanyR/vignettes/ ethnobotanyr_vignette.html
This is an ethnobotany data set including one column of knowledge holder identifiers informant and one of species names sp_name.
The rest of the columns are the identified ethnobotany use categories (Tsioutsiou et al., 2019).
The data in the use categories is populated with counts of uses per person (should be 0 or 1 values).
URs() calculates the total uses for the species by all informants (from \(i_1\) to \(^iN\)) within each use-category for that species \((s)\).
It is a count of the number of informants who mention each use-category \(NC\) for the species and the sum of all uses in each use-category (from \(u_1\) to \(^uNC\)) (Prance et al. 1987).
\[\begin{equation} UR_{s} = \sum_{u=u_1}^{^uNC} \sum_{i=i_1}^{^iN} UR_{ui} \end{equation}\]
The URsum() function calculates the sum of all ethnobotany use reports (UR) for all species in the data set.
The CIs() function calculates the cultural importance index (CI) for each species in the data set.
The CIs() is essentially URs() divided by the number of informants to account for the diversity of uses for the species.
\[\begin{equation} CI_{s} = \sum_{u=u_1}^{^uNC} \sum_{i=i_1}^{^iN} UR_{ui/N}. \end{equation}\]
The FCs() function calculates the frequency of citation (FC) for each species in the data set.
The FCs() is the sum of informants that cite a use for the species.
\[\begin{equation} FC_s = \sum_{i=i_1}^{^iN} UR_i \end{equation}\]
The NUs() function calculates the number of uses (NU) for each species in the data set.\(NC\) are the number of use categories.
The NUs() is the sum of all categories for which a species is considered useful (Prance et al. 1987).
\[\begin{equation} NU_s = \sum_{u=u_1}^{^uNC} \end{equation}\]
The RFCs() function calculates the relative frequency of citation (RFC) for each species in the data set.
\(FC_s\) is the frequency of citation for each species \(s\), \(UR_i\) are the use reports for all informants \(i\) and \(N\) is the total number of informants interviewed in the survey.
\[\begin{equation} RFC_s = \frac{FC_s}{N} = \frac{\sum_{i=i_1}^{^iN} UR_i}{N} \end{equation}\]
The RIs() function calculates the relative importance index (RI) for each species in the data set.
\(RFC_{s(max)}\) is the relative frequency of citation for the species \(s\) over the maximum, \(RNU_{s(max)}\) is the relative number of uses for \(s\) over the maximum (see Tardio and Pardo-de-Santayana 2008).
\[\begin{equation} RI_s = \frac{RFC_{s(max)} + RNU_{s(max)}}{2} \end{equation}\]
The UVs() function calculates the use value (UV) index for each species in the data set.
\(U_i\) is the number of different uses mentioned by each informant \(i\) and \(N\) is the total number of informants interviewed in the survey (Albuquerque et al. 2006).
\[\begin{equation} UV_{s} = \sum U_i/N \end{equation}\]
The FLs() function calculates the fidelity level (FL) per species in the study.
It is a way of calculating the percentage of informants who use a plant for the same purpose as compared to all uses of all plants.
where \(N_s\) is the number of informants that use a particular plant for a specific purpose, and \(UR_s\) is the total number of use reports for the species.
Divide FLs by 100 to get the percent FL, as it is reported in some studies.
URs_plot <- ethnobotanyR::Radial_plot(ethnobotany_cat, ethnobotanyR::URs)
#> Scale for 'y' is already present. Adding another scale for 'y', which will
#> replace the existing scale.
NUs_plot <- ethnobotanyR::Radial_plot(ethnobotany_cat, ethnobotanyR::NUs)
#> Scale for 'y' is already present. Adding another scale for 'y', which will
#> replace the existing scale.
FCs_plot <- ethnobotanyR::Radial_plot(ethnobotany_cat, ethnobotanyR::FCs)
#> Scale for 'y' is already present. Adding another scale for 'y', which will
#> replace the existing scale.
CIs_plot <- ethnobotanyR::Radial_plot(ethnobotany_cat, ethnobotanyR::CIs)
#> Scale for 'y' is already present. Adding another scale for 'y', which will
#> replace the existing scale.
cowplot::plot_grid(URs_plot, NUs_plot, FCs_plot, CIs_plot,
labels = c('URs', 'NUs', 'FCs', 'CIs'),
nrow = 2,
align="hv",
label_size = 12)Labels for use, species and Expert
# correct internal assignment for stat = "stratum"
StatStratum <- ggalluvial::StatStratum
ggalu<-ethnobotanyR::ethno_alluvial(ethnobotany_cat, alpha = 0.2) +
ggplot2::theme(legend.position = "none") +
ggplot2::geom_label(stat = "stratum",
ggplot2::aes(label = ggplot2::after_stat(stratum)))
plot(ggalu)library(dplyr)
sp_an_mu_data <- ethnobotany_cat %>% filter(sp_name == "anona_muricata")
sp_an_mu_use <- ethno_boot(sp_an_mu_data$food, statistic = mean, n1 = 1000)
sp_alc_cor_data <- ethnobotany_cat %>% filter(sp_name == "alchornea_cordifolia")
sp_alc_cor_use<- ethno_boot(sp_alc_cor_data$food , statistic = mean, n1 = 1000)library(ggplot2)
ggplot(ethno_boot_melt, aes(x = value,
y = variable, fill = variable)) +
ggridges::geom_density_ridges() +
ggridges::theme_ridges() +
theme(legend.position = "none") +
labs(y= "", x = "Example Bayesian bootstraps of food use category")ethno_compet_an_mu <- dplyr::recode(ethno_an_mu$informant,
aime = 0.9,rutho = 0.5,evan = 0.5,
konan = 0.9, lidie = 0.9, rosine = 0.5,
larrisa = 0.7,jean = 0.5, paul = 0.9, ib_chab = 0.9,
claud= 0.9, kouadio = 0.9)ethno_an_mu_bayes <- ethnobotanyR::ethno_bayes_consensus(ethno_an_mu,
answers = 2,
#here we keep the default normal distribution with `prior = -1`
prior_for_answers = ethno_compet_an_mu)Here the ‘1’ and ‘2’ represent ‘use’ and ‘no use’ (y-axis)
set.seed(123) #make random number reproducible
ethno_sp_a_rich <- data.frame(replicate(3,sample(0:10,20,rep=TRUE)))
names(ethno_sp_a_rich) <-
gsub(x = names(ethno_sp_a_rich),
pattern = "X", replacement = "Use_")
ethno_sp_a_rich$informant <- sample(c('User_1', 'User_2'),
20, replace=TRUE)
ethno_sp_a_rich$sp_name <- sample(c('sp_a'),
20, replace=TRUE)ethno_sp_a_bayes <- ethnobotanyR::ethno_bayes_consensus(ethno_sp_a_rich,
answers = 10,
prior_for_answers = ethno_compet_sp_a_rich,
prior=-1) #keep a normal prior in this example with -1
Comment the dataset: EDA