The ILORA (Indian Alien Flora Information) package is designed to
facilitate the retrieval and analysis of species occurrence data from
the Indian Alien Flora Information (ILORA) database. This vignette
provides an introduction to using the ILORA package, which includes
three main functions: get_data(),
get_species_details(), and EDA().
Additionally, there are three supporting functions:
get_species_names(), get_variable_names(), and
get_table_names(). The EDA function includes
ten different exploratory data analysis functions for user
convenience.
You can install the ILORA package from CRAN using the following command:
install.packages("ILORA")
Alternatively, you can install the development version from GitHub:
devtools::install_github("Ruqaiya41/ILORA")
Once installed, load the ILORA package into your R session:
library(ILORA)
The ILORA package provides several functions to facilitate data retrieval and analysis:
get_data: Retrieves data for a given species from the
ILORA database based on specified variables.get_species_details: Retrieves comprehensive details
about a specified species from multiple tables in the ILORA
database.EDA: Dynamically calls a specified EDA function from a
list of available functions.get_species_names: Retrieves example species names
available in the ILORA database.get_variable_names: Retrieves example variable names
relevant to species data analysis.get_table_names: Retrieves example table names relevant
to species data analysis.The EDA function contains ten different exploratory data
analysis functions for user convenience:
plot_species_on_map: Plots given species on a map of
India.bar_plot: Provides a bar plot of the five categories of
invasion status.species_count_plot: Generates a list containing plots
of growth habit and duration, along with their respective summary
tables.introduction_pathways_plot: Creates a pie chart of
introduction pathways.plot_first_record_year_histogram: Displays a histogram
based on the first record date, showing the number of species recorded
over specific time intervals.calculate_mrt: Calculates minimum residence time (MRT),
defined as (current year – first recorded year).calculate_total_uses: Calculates the total number of
uses for each species.calculate_market_metrics: Generates a list with metrics
including average seed and plant prices, as well as the highest and
lowest prices and their respective species.visualize_native_range: Visualizes the native range of
a species on a global map.visualize_naturalized_range: Visualizes the naturalized
range of a species on a global map.To get details about each function, use the help file with
?{function name}. For example: ?bar_plot.
To retrieve data for a specific species and variable from the ILORA package:
species_data <- get_data("Rotala densiflora (Roth) Koehne", c("orders", "0700_Fuels2", "genus", "species"))
head(species_data)
To retrieve comprehensive details about a specified species from multiple tables in the ILORA database:
details <- get_species_details("Rotala densiflora (Roth) Koehne")
View(details)
This function dynamically calls a specified EDA function from a list of available functions:
EDA(calculate_mrt, species = "Rotala densiflora (Roth) Koehne")
EDA(bar_plot)
To retrieve example species names from the ILORA package:
species <- get_species_names()
head(species)
To retrieve variable names from the ILORA package:
variable <- get_variable_names()
head(variable)
To retrieve example table names from the ILORA package:
table <- get_table_names()
head(table)