Description Usage Arguments Details Value See Also Examples
gd_get_biome
takes either geographical coordinats or climatic data
and returns the Whittaker's biome.
1 | gd_get_biome(data, si_lat, si_long, si_mat, si_map, merge_deserts = FALSE)
|
data |
Data frame including either geographical coordinates (latitude and longitude) or climatic data (MAT and MAP). |
si_lat |
Character, name of the column containing latitude values in
decimal degrees or, alternatively, if |
si_long |
Character, name of the column containing longitude values in
decimal degrees or, alternatively, if |
si_mat |
Character, name of the column containing mean annual
temperature values in degrees Celsius or, alternatively, if |
si_map |
Character, name of the column containing mean annual
precipitation values in millimeters or alternatively, if |
merge_deserts |
Logical indicating if desert biomes should be merged in a single biome. By default, deserts are not merged. |
This function takes a data frame including at least either two columns
with geographical coordinates (latitude and longitude), or two columns with
climatic data (mean annual temperature and mean annual precipitation).
It returns the same data frame with extra columns of climatic data (si_mat
and si_map, if not provided) and biome (si_biome), according to
gd_get_biomes_spdf
.
Alternatively it accepts either a value of latitude and a value of longitude or a value of mean annual temperature (MAT) and a value of mean annual precipitation (MAP), and returns a data frame with latitude (if provided), longitude (if provided), mean annual temperature, mean annual precipitation and biome.
Climatic data is obtained from WorldClim 1.4 using the RFc
package.
A data frame with the original data and extra columns of mean annual temperature, mean annual precipitation and biome.
Other Get.Data.Functions: gd_get_biomes_spdf
1 2 3 4 5 6 7 8 9 | # Create a data frame with coordinates
sites <- data.frame(site = c("A", "B"), lat = c(69.49, 41.43),
long = c(27.23, 2.07))
# Get temperature, precipitation and biomes
gd_get_biome(sites, si_lat = "lat", si_long = "long")
# Alternatively, for one site
gd_get_biome(si_mat = 15.8, si_map = 622)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.