Title: | Linguistic Typology and Mapping |
---|---|
Description: | Provides R with the Glottolog database <https://glottolog.org/> and some more abilities for purposes of linguistic mapping. The Glottolog database contains the catalogue of languages of the world. This package helps researchers to make a linguistic maps, using philosophy of the Cross-Linguistic Linked Data project <https://clld.org/>, which allows for while at the same time facilitating uniform access to the data across publications. A tutorial for this package is available on GitHub pages <https://docs.ropensci.org/lingtypology/> and package vignette. Maps created by this package can be used both for the investigation and linguistic teaching. In addition, package provides an ability to download data from typological databases such as WALS, AUTOTYP and some others and to create your own database website. |
Authors: | George Moroz [aut, cre] , Kirill Koncha [ctb] , Mikhail Leonov [ctb], Anna Smirnova [ctb], Ekaterina Zalivina [ctb] |
Maintainer: | George Moroz <[email protected]> |
License: | GPL (>= 2) |
Version: | 1.1.20 |
Built: | 2024-10-29 21:15:21 UTC |
Source: | https://github.com/ropensci/lingtypology |
Language identifiers from ABVD (https://abvd.eva.mpg.de/austronesian/). This dataset is created for abvd.feature
function.
abvd
abvd
A data frame with 1468 rows and 2 variables:
language identifier
Glottocode
This function downloads data from ABVD (https://abvd.eva.mpg.de/austronesian/) and changes language names to the names from lingtypology database. You need the internet connection.
abvd.feature(feature)
abvd.feature(feature)
feature |
A character vector that define a language id from ABVD (e. g. "1", "292"). |
George Moroz <[email protected]>
afbo.feature
, autotyp.feature
, bivaltyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, soundcomparisons.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
, wals.feature
# abvd.feature(c(292, 7))
# abvd.feature(c(292, 7))
This function downloads data from AfBo (https://afbo.info/) and changes language names to the names from lingtypology database. You need the internet connection.
afbo.feature(features = "all", na.rm = TRUE)
afbo.feature(features = "all", na.rm = TRUE)
features |
A character vector that define with an affix functions from AfBo (e. g. "all", "adjectivizer", "focus"). |
na.rm |
Logical. If TRUE function removes all languages not available in lingtypology database. By default is TRUE. |
abvd.feature
, autotyp.feature
, bivaltyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, soundcomparisons.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
, wals.feature
abvd.feature
, autotyp.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, uralex.feature
, valpal.feature
, wals.feature
# afbo.feature() # afbo.feature(c("adjectivizer", "adverbializer"))
# afbo.feature() # afbo.feature(c("adjectivizer", "adverbializer"))
Takes any vector of languages and returns affiliation.
aff.lang(x)
aff.lang(x)
x |
A character vector of the languages (can be written in lower case) |
George Moroz <[email protected]>
area.lang
, country.lang
, gltc.lang
, iso.lang
, lat.lang
, long.lang
, subc.lang
, url.lang
aff.lang('Korean') aff.lang(c('Korean', 'Polish'))
aff.lang('Korean') aff.lang(c('Korean', 'Polish'))
Takes any vector of languages and returns macro area.
area.lang(x)
area.lang(x)
x |
character vector of the languages (can be written in lower case) |
George Moroz <[email protected]>
aff.lang
, country.lang
, gltc.lang
, iso.lang
, lat.lang
, long.lang
, subc.lang
, url.lang
area.lang('Kabardian') area.lang(c('Kabardian', 'Aduge'))
area.lang('Kabardian') area.lang(c('Kabardian', 'Aduge'))
This function creates an rmarkdown based atlas from data provided by users. This function creates the template, after it should be rendered by rmarkdown package. The DT package is required during the rendering.
atlas.database( languages, latitude, longitude, features, atlas.name = "", author = "" )
atlas.database( languages, latitude, longitude, features, atlas.name = "", author = "" )
languages |
character vector of languages (can be written in lower case) |
latitude |
numeric vector of latitudes (optional) |
longitude |
numeric vector of longitudes (optional) |
features |
dataframe where each column is a feature set |
atlas.name |
string with an atlas name |
author |
string with the authors list |
Language identifiers from AUTOTYP v. 1.1.1 (https://github.com/autotyp/autotyp-data/). This dataset is created for autotyp.feature
function.
autotyp
autotyp
An object of class data.frame
with 1342 rows and 3 columns.
#' @format A data frame with 1342 rows and 3 variables:
path to the dataset in autotyp repo
variable name
topic name
This function downloads data from AUTOTYP (https://github.com/autotyp/autotyp-data#the-autotyp-database) and changes language names to the names from lingtypology database. You need the internet connection.
autotyp.feature(features, na.rm = TRUE)
autotyp.feature(features, na.rm = TRUE)
features |
A character vector that define with a feature names from AUTOTYP. |
na.rm |
Logical. If TRUE function removes all languages not available in lingtypology database. By default is TRUE. |
abvd.feature
, afbo.feature
, bivaltyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, soundcomparisons.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
, wals.feature
abvd.feature
, afbo.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, uralex.feature
, valpal.feature
, wals.feature
# autotyp.feature(c('Has Gender', 'Has Numeral Classifiers'))
# autotyp.feature(c('Has Gender', 'Has Numeral Classifiers'))
Language identifiers from BANTU (https://abvd.eva.mpg.de/bantu/index.php). This dataset is created for bantu.feature
function.
bantu
bantu
A data frame with 430 rows and 2 variables:
BANTU word id
word
This function downloads data from Bantu Basic Vocabulary Database (https://abvd.eva.mpg.de/bantu/index.php) and changes language names to the names from lingtypology database. You need the internet connection.
bantu.feature(features)
bantu.feature(features)
features |
A character vector that define with a feature ids from BANTU ('house', 'cat'). |
Anna Smirnova <[email protected]>
abvd.feature
, afbo.feature
, autotyp.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, uralex.feature
, valpal.feature
# bantu.feature(c('house', 'cat'))
# bantu.feature(c('house', 'cat'))
This function downloads data from BivalTyp (https://www.bivaltyp.info/) and changes language names to the names from lingtypology database. You need the internet connection.
bivaltyp.feature()
bivaltyp.feature()
George Moroz <[email protected]>
abvd.feature
, afbo.feature
, autotyp.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, valpal.feature
, wals.feature
abvd.feature
, afbo.feature
, autotyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, soundcomparisons.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
, wals.feature
# bivaltyp.feature()
A dataset containes the list of the Circassian villages in Russia with genealogical affiliation, coordinates and district names. Most data collected during the fieldworks (2011–2018).
circassian
circassian
A data frame with 158 rows and 6 variables:
longitude
latitude
name of the village
names of the subjects of the Russian Federation: kbr — Kabardino–Balkar Republic, kch — Karachay–Cherkess Republic, kk — Krasnodar Krai, ra — Republic of Adygea, stv — Stavropol Krai
names of the Circassian dialects
according standard Circassian devision there are West Circassian and Kabardian languages
Catalogue of countries, ISO-codes and official languages
countries
countries
A data frame with 189 rows and 5 variables:
ISO 3166-3 code of the country
ISO 3166-2 code of the country
Country name
Additional names of the country
Official languages
Takes any vector of languages and returns countries where those languages are used as ISO 3166-1 alpha-2 codes.
country.lang(x, full_name = TRUE)
country.lang(x, full_name = TRUE)
x |
A character vector of the languages (can be written in lower case) |
full_name |
A logical value, whether return ISO 3166-2 codes or full names. |
George Moroz <[email protected]>
aff.lang
, area.lang
, gltc.lang
, iso.lang
, lat.lang
, long.lang
, subc.lang
, url.lang
country.lang('Korean') country.lang(c('Korean', 'Polish'))
country.lang('Korean') country.lang(c('Korean', 'Polish'))
Data from The database of Eurasian phonological inventories (https://eurphon.info). This dataset is created for eurasianphonology.feature
function.
eurasianphonology
eurasianphonology
A data frame with 19825 rows and 19 variables:
Language id
ISO code
Another language name
Language or dialect
Language name
latitude
longitude
Language Family
Language Family
Inventory of tones
Syllab structure
Cluster
Finals
Source
Comment
Contributor
Vowels or consonants
Segments
Glottocode
This function opens downloaded data from the database of Eurasian phonological inventories (https://eurphon.info).
eurasianphonology.feature()
eurasianphonology.feature()
Kirill Koncha <[email protected]>
abvd.feature
, afbo.feature
, autotyp.feature
, bivaltyp.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, soundcomparisons.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
, wals.feature
eurasianphonology.feature()
eurasianphonology.feature()
This function downloads frequency list from OpenSubtitles2018 (https://opus.nlpl.eu/). You need the internet connection.
frequency_list.feature(languages, list_type = "full")
frequency_list.feature(languages, list_type = "full")
languages |
ISO 639-1 language code and some others ('ze_en', 'ze_zh', 'zh_cn', 'zh_tw', 'pt_br'). Possible values: 'af', 'ar', 'bg', 'bn', 'br', 'bs', 'ca', 'cs', 'da', 'de', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fr', 'gl', 'he', 'hi', 'hr', 'hu', 'hy', 'id', 'is', 'it', 'ja', 'ka', 'kk', 'ko', 'lt', 'lv', 'mk', 'ml', 'ms', 'nl', 'no', 'pl', 'pt', 'pt_br', 'ro', 'ru', 'si', 'sk', 'sl', 'sq', 'sr', 'sv', 'ta', 'te', 'tl', 'tr', 'uk', 'ur', 'vi', 'ze_en', 'ze_zh', 'zh_cn', 'zh_tw'. |
list_type |
Type of frequency list. Possible values: 'full', '50k', 'ignored'. By default is full. |
Ekaterina Zalivina <[email protected]>
abvd.feature
, afbo.feature
, bivaltyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, soundcomparisons.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
, wals.feature
abvd.feature
, afbo.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, uralex.feature
, valpal.feature
, wals.feature
# frequency_list.feature('ro') # frequency_list.feature('en', '50k') # frequency_list.feature(c('en', 'ru'), '50k')
# frequency_list.feature('ro') # frequency_list.feature('en', '50k') # frequency_list.feature(c('en', 'ru'), '50k')
A dataset containes the original catalogue of languages of the world involving genealogical affiliation, macro-area, country, iso code, and coordinates.
glottolog
glottolog
A data frame with 26953 rows and 10 variables:
languoid code from Glottolog 5.1
name of the language
code based on ISO 639–3 https://iso639-3.sil.org/
languoid type: dialect or language (possible values are dialect, language, family, bookkeeping, pseudo family, sign language, unclassifiable, pidgin, unattested, artificial language, speech register, mixed language)
have six values Africa, Australia, Eurasia, North America, Papunesia, South America
latitude
longitude
list of countries, where the language is spoken
genealogical affiliation
subclassification in a Newick format
Hammarstrom, Harald and Forkel, Robert and Haspelmath, Martin and Bank, Sebastian. 2023. Glottolog 5.1. Leipzig: Max Planck Institute for Evolutionary Anthropology. https://doi.org/10.5281/zenodo.10804357 (Available online at http://glottolog.org, Accessed on 2024-03-12.)
Takes any vector of ISO 639–3 codes and returns Glottocodes.
gltc.iso(x)
gltc.iso(x)
x |
A character vector of the Glottocodes. |
George Moroz <[email protected]>
aff.lang
, area.lang
, lat.lang
, long.lang
gltc.iso('ady') gltc.iso(c('ady', 'rus'))
gltc.iso('ady') gltc.iso(c('ady', 'rus'))
Takes any vector of languages and returns Glottocode.
gltc.lang(x)
gltc.lang(x)
x |
A character vector of the languages (can be written in lower case) |
George Moroz <[email protected]>
aff.lang
, area.lang
, country.lang
, iso.lang
, lat.lang
, long.lang
, subc.lang
, url.lang
gltc.lang('Kabardian') gltc.lang(c('Kabardian', 'Udi'))
gltc.lang('Kabardian') gltc.lang(c('Kabardian', 'Udi'))
This function downloads data from Grambank (https://grambank.clld.org/) and changes language names to the names from lingtypology database. You need the internet connection.
grambank.feature(features, na.rm = TRUE)
grambank.feature(features, na.rm = TRUE)
features |
A character vector that define with a feature ids from Grambank (e. g. "gb026", "gb042"). |
na.rm |
Logical. If TRUE function removes all languages not available in lingtypology database. By default is TRUE. |
George Moroz <[email protected]>
abvd.feature
, afbo.feature
, autotyp.feature
, bivaltyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, soundcomparisons.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
, wals.feature
# grambank.feature(c("gb026", "gb042"))
# grambank.feature(c("gb026", "gb042"))
These objects are imported from other packages. Follow the links to their documentation.
Takes any vector of languages or ISO codes and returns a logical vector.
is.glottolog(x, response = FALSE)
is.glottolog(x, response = FALSE)
x |
A character vector of languages (can be written in lower case)or ISO codes |
response |
logical. If TRUE, when language is absent, return warnings with a possible candidates. |
George Moroz <[email protected]>
is.glottolog(c('Kabardian', 'Russian')) is.glottolog('Buyaka') ## Not run: # Add warning message with sugestions is.glottolog(c('Adyge', 'Russian'), response = TRUE) # > FALSE TRUE # Warning message: # In is.glottolog(c('Kabardia', 'Russian'), response = TRUE) : # Language Kabardia is absent in our version of the Glottolog database. # Did you mean Kabardian, Greater Kabardian? ## End(Not run)
is.glottolog(c('Kabardian', 'Russian')) is.glottolog('Buyaka') ## Not run: # Add warning message with sugestions is.glottolog(c('Adyge', 'Russian'), response = TRUE) # > FALSE TRUE # Warning message: # In is.glottolog(c('Kabardia', 'Russian'), response = TRUE) : # Language Kabardia is absent in our version of the Glottolog database. # Did you mean Kabardian, Greater Kabardian? ## End(Not run)
ISO 639 provides three language code sets: one is a two-letter code (ISO 639-1) and two others are three-letter codes (ISO 639-2 and ISO 639-3) for the representation of names of languages. ISO 639-1 was devised primarily for use in terminology, lexicography and linguistics. ISO 639-2 was devised primarily for use in terminology and bibliography. ISO 639-3 was devised to provide a comprehensive set of identifiers for all languages for use in a wide range of applications, including linguistics, lexicography and internationalization of information systems. It attempts to represent all known full languages.
iso_639
iso_639
A data frame with 188 rows and 5 variables:
The three-letter 639-3 identifier
Equivalent 639-2 identifier of the bibliographic applications code set
Equivalent 639-2 identifier of the terminology applications code set
Equivalent 639-1 identifier
Reference language name
(Available online at https://iso639-3.sil.org/, Accessed on 2022-05-23.)
Takes any vector of Glotocodes and returns ISO code.
iso.gltc(x)
iso.gltc(x)
x |
A character vector of Glottocodes. |
George Moroz <[email protected]>
aff.lang
, area.lang
, lat.lang
, long.lang
iso.gltc('adyg1241') iso.gltc(c('adyg1241', 'udii1243'))
iso.gltc('adyg1241') iso.gltc(c('adyg1241', 'udii1243'))
Takes any vector of languages and returns ISO code.
iso.lang(x)
iso.lang(x)
x |
A character vector of the languages (can be written in lower case) |
George Moroz <[email protected]>
aff.lang
, area.lang
, country.lang
, gltc.lang
, lat.lang
, long.lang
, subc.lang
, url.lang
iso.lang('Kabardian') iso.lang(c('Kabardian', 'Udi'))
iso.lang('Kabardian') iso.lang(c('Kabardian', 'Udi'))
Takes any vector of ISO 639-1 codes and returns ISO 639-3 code.
iso3.iso1(x)
iso3.iso1(x)
x |
A character vector of ISO 639-3 codes. |
Ekaterina Zalivina <[email protected]>
aff.lang
, area.lang
, lat.lang
, long.lang
iso3.iso1('bs') iso3.iso1(c('co', 'it', 'ar'))
iso3.iso1('bs') iso3.iso1(c('co', 'it', 'ar'))
Takes any vector of affiliations and returns languages.
lang.aff(x, include.dialects = FALSE, list = FALSE)
lang.aff(x, include.dialects = FALSE, list = FALSE)
x |
A character vector of the affiliations (can be written in lower case) |
include.dialects |
logical. If TRUE, it returns all langauges and dialects, if FALSE it returns only languages. |
list |
logical. If TRUE, it returns a list of languages, if FALSE it returns a named vector. |
George Moroz <[email protected]>
lang.aff('Slavic') lang.aff(c('Slavic', 'Celtic')) lang.aff(c('Slavic', 'Celtic'), list = TRUE)
lang.aff('Slavic') lang.aff(c('Slavic', 'Celtic')) lang.aff(c('Slavic', 'Celtic'), list = TRUE)
Takes any vector of countries and returns languages.
lang.country(x, list = TRUE)
lang.country(x, list = TRUE)
x |
character vector of the countries (in alpha-2 ISO codes) |
list |
logical. If TRUE, it returns a list of languages, if FALSE it returns a named vector. |
George Moroz <[email protected]>
aff.lang
, country.lang
, gltc.lang
, iso.lang
, lat.lang
, long.lang
, subc.lang
, url.lang
lang.country('AD') lang.country(c('AD', 'AE'))
lang.country('AD') lang.country(c('AD', 'AE'))
Takes any vector of Glottocodes and returns languages.
lang.gltc(x)
lang.gltc(x)
x |
A character vector of the Glottocodes. |
George Moroz <[email protected]>
lang.gltc('adyg1241') lang.gltc(c('adyg1241', 'udii1243'))
lang.gltc('adyg1241') lang.gltc(c('adyg1241', 'udii1243'))
Takes any vector of ISO codes and returns languages.
lang.iso(x)
lang.iso(x)
x |
A character vector of the ISO codes. |
George Moroz <[email protected]>
lang.iso('ady') lang.iso(c('ady', 'rus'))
lang.iso('ady') lang.iso(c('ady', 'rus'))
Takes any vector of languages and returns latitude.
lat.lang(x)
lat.lang(x)
x |
A character vector of the languages (can be written in lower case) |
George Moroz <[email protected]>
aff.lang
, area.lang
, country.lang
, gltc.lang
, iso.lang
, long.lang
, subc.lang
, url.lang
lat.lang('Kabardian') long.lang('Kabardian') lat.lang(c('Kabardian', 'Russian')) long.lang(c('Kabardian', 'Russian'))
lat.lang('Kabardian') long.lang('Kabardian') lat.lang(c('Kabardian', 'Russian')) long.lang(c('Kabardian', 'Russian'))
Takes any vector of languages and returns a level of language.
level.lang(x)
level.lang(x)
x |
character vector of the languages (can be written in lower case) |
Sasha Shakhnova
aff.lang
, country.lang
, gltc.lang
, iso.lang
, lat.lang
, long.lang
, subc.lang
, url.lang
level.lang('Russian Sign Language') level.lang(c('Archi', 'Chechen'))
level.lang('Russian Sign Language') level.lang(c('Archi', 'Chechen'))
Takes any vector of languages and returns longitude.
long.lang(x, map.orientation = "Pacific")
long.lang(x, map.orientation = "Pacific")
x |
A character vector of the languages (can be written in lower case) |
map.orientation |
A character verctor with values "Pacific" and "Atlantic". It distinguishes Pacific-centered and Atlantic-centered maps. By default is "Pacific". |
George Moroz <[email protected]>
aff.lang
, area.lang
, country.lang
, gltc.lang
, iso.lang
, lat.lang
, subc.lang
, url.lang
lat.lang('Kabardian') long.lang('Kabardian') lat.lang(c('Kabardian', 'Russian')) long.lang(c('Kabardian', 'Russian')) long.lang(c('Kabardian', 'Aleut'), map.orientation = "Pacific")
lat.lang('Kabardian') long.lang('Kabardian') lat.lang(c('Kabardian', 'Russian')) long.lang(c('Kabardian', 'Russian')) long.lang(c('Kabardian', 'Aleut'), map.orientation = "Pacific")
Map a set of languages and color them by feature or two sets of features.
map.feature( languages, features = "", label = "", popup = "", latitude = NA, longitude = NA, label.hide = TRUE, label.fsize = 15, label.font = "sans-serif", label.position = "right", label.emphasize = list(NULL, "black"), shape = NULL, shape.size = 20, pipe.data = NULL, shape.color = "black", stroke.features = NULL, point.cluster = FALSE, density.estimation = NULL, density.method = "fixed distance", density.estimation.color = NULL, density.estimation.opacity = 0.6, density.points = TRUE, density.width = NULL, density.legend = TRUE, density.legend.opacity = 1, density.legend.position = "bottomleft", density.title = "", density.control = FALSE, isogloss = NULL, isogloss.color = "black", isogloss.opacity = 0.2, isogloss.line.width = 3, isogloss.width = NULL, color = NULL, stroke.color = NULL, image.url = NULL, image.width = 100, image.height = 100, image.X.shift = 0, image.Y.shift = 0, title = NULL, stroke.title = NULL, control = "", legend = TRUE, legend.opacity = 1, legend.position = "topright", stroke.legend = TRUE, stroke.legend.opacity = 1, stroke.legend.position = "bottomleft", width = 5, stroke.radius = 9.5, opacity = 1, stroke.opacity = 1, scale.bar = TRUE, scale.bar.position = "bottomleft", minimap = FALSE, minimap.position = "bottomright", minimap.width = 150, minimap.height = 150, facet = NULL, tile = "OpenStreetMap.Mapnik", tile.name = NULL, tile.opacity = 1, zoom.control = FALSE, zoom.level = NULL, rectangle.lng = NULL, rectangle.lat = NULL, rectangle.color = "black", line.lng = NULL, line.lat = NULL, line.type = "standard", line.color = "black", line.opacity = 0.8, line.label = NULL, line.width = 3, graticule = NULL, minichart = "bar", minichart.data = NULL, minichart.time = NULL, minichart.labels = FALSE, map.orientation = "Pacific", radius = NULL )
map.feature( languages, features = "", label = "", popup = "", latitude = NA, longitude = NA, label.hide = TRUE, label.fsize = 15, label.font = "sans-serif", label.position = "right", label.emphasize = list(NULL, "black"), shape = NULL, shape.size = 20, pipe.data = NULL, shape.color = "black", stroke.features = NULL, point.cluster = FALSE, density.estimation = NULL, density.method = "fixed distance", density.estimation.color = NULL, density.estimation.opacity = 0.6, density.points = TRUE, density.width = NULL, density.legend = TRUE, density.legend.opacity = 1, density.legend.position = "bottomleft", density.title = "", density.control = FALSE, isogloss = NULL, isogloss.color = "black", isogloss.opacity = 0.2, isogloss.line.width = 3, isogloss.width = NULL, color = NULL, stroke.color = NULL, image.url = NULL, image.width = 100, image.height = 100, image.X.shift = 0, image.Y.shift = 0, title = NULL, stroke.title = NULL, control = "", legend = TRUE, legend.opacity = 1, legend.position = "topright", stroke.legend = TRUE, stroke.legend.opacity = 1, stroke.legend.position = "bottomleft", width = 5, stroke.radius = 9.5, opacity = 1, stroke.opacity = 1, scale.bar = TRUE, scale.bar.position = "bottomleft", minimap = FALSE, minimap.position = "bottomright", minimap.width = 150, minimap.height = 150, facet = NULL, tile = "OpenStreetMap.Mapnik", tile.name = NULL, tile.opacity = 1, zoom.control = FALSE, zoom.level = NULL, rectangle.lng = NULL, rectangle.lat = NULL, rectangle.color = "black", line.lng = NULL, line.lat = NULL, line.type = "standard", line.color = "black", line.opacity = 0.8, line.label = NULL, line.width = 3, graticule = NULL, minichart = "bar", minichart.data = NULL, minichart.time = NULL, minichart.labels = FALSE, map.orientation = "Pacific", radius = NULL )
languages |
character vector of languages (can be written in lower case) |
features |
character vector of features |
label |
character vector of strings that will appear near points |
popup |
character vector of strings that will appear in pop-up window |
latitude |
numeric vector of latitudes |
longitude |
numeric vector of longitudes |
label.hide |
logical. If FALSE, labels are displayed allways. If TRUE, labels are displayed on mouse over. By default is TRUE. |
label.fsize |
numeric value of the label font size. By default is 14. |
label.font |
string with values of generic family: "serif", "sans-serif", "monospace", or font name e. g. "Times New Roman" |
label.position |
the position of labels: "left", "right", "top", "bottom" |
label.emphasize |
is the list. First argument is a vector of points in datframe that should be emphasized. Second argument is a string with a color for emphasis. |
shape |
|
shape.size |
size of the |
pipe.data |
this variable is important, when you use map.feature with dplyr pipes. Expected usage: pipe.data = . |
shape.color |
color of the |
stroke.features |
additional independent stroke features |
point.cluster |
logical. If TRUE, points will be united into clusters. |
density.estimation |
additional independent features, used for density estimation |
density.method |
string with one of the two methods: "kernal density estimation" or "fixed distance" (default) |
density.estimation.color |
vector of density polygons' colors |
density.estimation.opacity |
a numeric vector of density polygons opacity. |
density.points |
logical. If FALSE, it doesn't show points in polygones. |
density.width |
for density.method = "fixed distance" it is a numeric measure (1 is 1km). For density.method = "kernal density estimation" it is a vector with two meausures (first is latitude, secong is longitude). Defaults are normal reference bandwidth (see bandwidth.nrd). |
density.legend |
logical. If TRUE, function show legend for density features. By default is FALSE. |
density.legend.opacity |
a numeric vector of density-legend opacity. |
density.legend.position |
the position of the legend: "topright", "bottomright", "bottomleft","topleft" |
density.title |
title of a density-feature legend |
density.control |
logical. If TRUE, function show layer control buttons for density plot. By default is FALSE |
isogloss |
dataframe with corresponding features |
isogloss.color |
vector of isoglosses' colors |
isogloss.opacity |
a numeric vector of density polygons opacity. |
isogloss.line.width |
a numeric value for line width |
isogloss.width |
for density.method = "fixed distance" it is a numeric measure (1 is 1km). For density.method = "kernal density estimation" it is a vector with two meausures (first is latitude, secong is longitude). Defaults are normal reference bandwidth (see bandwidth.nrd). |
color |
vector of colors or palette. The color argument can be (1) a character vector of RGM or named colors; (2) the name of an RColorBrewer palette; (3) the full name of a viridis palette; (4) a function that receives a single value between 0 and 1 and returns a color. For more examples see |
stroke.color |
vector of stroke colors |
image.url |
character vector of URLs with an images |
image.width |
numeric vector of image widths |
image.height |
numeric vector of image heights |
image.X.shift |
numeric vector of image's X axis shift relative to the latitude-longitude point |
image.Y.shift |
numeric vector of image's Y axis shift relative to the latitude-longitude point |
title |
title of a legend. |
stroke.title |
title of a stroke-feature legend. |
control |
vector of grouping values that make it possible to create control panel that can turn off/on some points on the map. |
legend |
logical. If TRUE, function show legend. By default is TRUE. |
legend.opacity |
a numeric vector of legend opacity. |
legend.position |
the position of the legend: "topright", "bottomright", "bottomleft","topleft" |
stroke.legend |
logical. If TRUE, function show stroke.legend. By default is FALSE. |
stroke.legend.opacity |
a numeric vector of stroke.legend opacity. |
stroke.legend.position |
the position of the stroke.legend: "topright", "bottomright", "bottomleft","topleft" |
width |
a numeric vector of radius for circles or width for barcharts in minicharts. |
stroke.radius |
a numeric vector of stroke radii for the circles. |
opacity |
a numeric vector of marker opacity. |
stroke.opacity |
a numeric vector of stroke opacity. |
scale.bar |
logical. If TRUE, function shows scale-bar. By default is TRUE. |
scale.bar.position |
the position of the scale-bar: "topright", "bottomright", "bottomleft","topleft" |
minimap |
logical. If TRUE, function shows mini map. By default is FALSE. |
minimap.position |
the position of the minimap: "topright", "bottomright", "bottomleft","topleft" |
minimap.width |
The width of the minimap in pixels. |
minimap.height |
The height of the minimap in pixels. |
facet |
character vector that provide a grouping variable. If it is no |
tile |
a character verctor with a map tiles, popularized by Google Maps. See here for the complete set. |
tile.name |
a character verctor with a user's map tiles' names. |
tile.opacity |
numeric value from 0 to 1 denoting opacity of the tile. |
zoom.control |
logical. If TRUE, function shows zoom controls. By default is FALSE. |
zoom.level |
a numeric value of the zoom level. |
rectangle.lng |
vector of two longitude values for rectangle. |
rectangle.lat |
vector of two latitude values for rectangle. |
rectangle.color |
vector of rectangle border color. |
line.lng |
vector of two (or more) longitude values for line. |
line.lat |
vector of two (or more) latitude values for line. |
line.type |
a character string indicating which type of line is to be computed. One of "standard" (default), or "logit". The first one should be combined with the arguments line.lat and line.lng and provide simple lines. Other variant "logit" is the decision boundary of the logistic regression made using longitude and latitude coordinates (works only if feature argument have two levels). |
line.color |
vector of line color. |
line.opacity |
a numeric vector of line opacity. |
line.label |
character vector that will appear near the line. |
line.width |
a numeric vector of line width. |
graticule |
a numeric vector for graticule spacing in map units between horizontal and vertical lines. |
minichart |
citation from leaflet.minicharts package: "Possible values are "bar" for bar charts, "pie" for pie charts, "polar-area" and "polar-radius"." |
minichart.data |
citation from leaflet.minicharts package: "A numeric matrix with number of rows equal to the number of elements in lng or lat and number of column equal to the number of variables to represent. If parameter time is set, the number of rows must be equal to the length of lng times the number of unique time steps in the data." |
minichart.time |
citation from leaflet.minicharts package: "A vector with length equal to the number of rows in chartdata and containing either numbers representing time indices or dates or datetimes. Each unique value must appear as many times as the others. This parameter can be used when one wants to represent the evolution of some variables on a map." |
minichart.labels |
citation from leaflet.minicharts package: "Should values be displayed above chart elements." |
map.orientation |
a character verctor with values "Pacific" and "Atlantic". It distinguishes Pacific-centered and Atlantic-centered maps. By default is "Pacific". |
radius |
deprecated argument |
George Moroz <[email protected]>
map.feature(c("Kabardian", "Russian"))
map.feature(c("Kabardian", "Russian"))
Language identifiers from Oto-Manguean Inflectional Class Database (https://oto-manguean.surrey.ac.uk/). This dataset is created for oto_mangueanIC.feature
function.
oto_mangueanIC
oto_mangueanIC
An object of class tbl_df
(inherits from tbl
, data.frame
) with 20 rows and 2 columns.
#' @format A data frame with 20 rows and 2 variables:
Languaeg names from Oto-Manguean Inflectional Class Database
Language names from Glottolog database
This function downloads data from Oto-Manguean Inflectional Class Database (https://oto-manguean.surrey.ac.uk/) and creates a language column with the names from lingtypology database. You need the internet connection.
oto_mangueanIC.feature()
oto_mangueanIC.feature()
George Moroz <[email protected]>
abvd.feature
, afbo.feature
, autotyp.feature
, phoible.feature
, sails.feature
, uralex.feature
, valpal.feature
, wals.feature
abvd.feature
, afbo.feature
, autotyp.feature
, bivaltyp.feature
, eurasianphonology.feature
, phoible.feature
, sails.feature
, soundcomparisons.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
, wals.feature
# oto_mangueanIC.feature()
Language correspondencies for Phoible (https://phoible.org/). This dataset is created for phoible.feature
function.
phoible
phoible
A data frame with 2185 rows and 2 variables:
language
Glottocode
This function downloads data from PHOIBLE (https://phoible.org/) and changes language names to the names from lingtypology database. You need the internet connection.
phoible.feature(source = "all", na.rm = TRUE)
phoible.feature(source = "all", na.rm = TRUE)
source |
A character vector that define with a source names from PHOIBLE (possible values: "all", "aa", "gm", "ph", "ra", "saphon", "spa", "upsid"). |
na.rm |
Logical. If TRUE function removes all languages not available in lingtypology database. By default is TRUE. |
abvd.feature
, afbo.feature
, autotyp.feature
, bivaltyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, sails.feature
, soundcomparisons.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
, wals.feature
abvd.feature
, afbo.feature
, autotyp.feature
, oto_mangueanIC.feature
, sails.feature
, uralex.feature
, valpal.feature
, wals.feature
# phoible.feature() # phoible.feature(c('consonants', 'vowels'), source = "UPSID")
# phoible.feature() # phoible.feature(c('consonants', 'vowels'), source = "UPSID")
Number of consonants and presence of ejectives
phonological_profiles
phonological_profiles
A data frame with 19 rows and 4 variables:
language name
number of consonants. Based on UPSID database.
number of vowels. Based on UPSID database.
presence of ejective sounds.
presence of tone.
presence of stress.
presence of long vowels.
This function is based on this answer: https://www.r-bloggers.com/merging-spatial-buffers-in-r/
polygon.points_fd(latitude, longitude, width)
polygon.points_fd(latitude, longitude, width)
latitude |
numeric vector of latitudes |
longitude |
numeric vector of longitudes |
width |
radius for creating poligons around points |
This function is based on this answer: https://gis.stackexchange.com/a/203623/
polygon.points_kde(latitude, longitude, latitude.width, longitude.width)
polygon.points_kde(latitude, longitude, latitude.width, longitude.width)
latitude |
numeric vector of latitudes |
longitude |
numeric vector of longitudes |
latitude.width |
bandwidths for latitude values. Defaults to normal reference bandwidth (see bandwidth.nrd). |
longitude.width |
bandwidths for longitude values. Defaults to normal reference bandwidth (see bandwidth.nrd). |
List of all providers with their variations taken from leaflet package
providers
providers
A list of characters
https://github.com/leaflet-extras/leaflet-providers/blob/master/leaflet-providers.js
This function downloads data from SAILS (https://sails.clld.org/) and changes language names to the names from lingtypology database. You need the internet connection.
sails.feature(features, na.rm = TRUE)
sails.feature(features, na.rm = TRUE)
features |
A character vector that define with a feature ids from SAILS (e. g. "and1", "argex4-1-3"). |
na.rm |
Logical. If TRUE function removes all languages not available in lingtypology database. By default is TRUE. |
abvd.feature
, afbo.feature
, autotyp.feature
, bivaltyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, phoible.feature
, soundcomparisons.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
, wals.feature
abvd.feature
, afbo.feature
, autotyp.feature
, oto_mangueanIC.feature
, phoible.feature
, uralex.feature
, valpal.feature
, wals.feature
# sails.feature(c("and1", "and11"))
# sails.feature(c("and1", "and11"))
Language identifiers from SOUNDCOMPARISONS. This dataset is created for soundcomparisons.feature
function.
soundcomparisons
soundcomparisons
An object of class data.frame
with 556 rows and 3 columns.
#' @format A data frame with 556 rows and 2 variables:
SOUNDCOMPARISONS language identifier
Language Id
This function downloads data from SOUNDCOMPARISONS and changes language names to the names from lingtypology database. You need the internet connection.
soundcomparisons.feature(word)
soundcomparisons.feature(word)
word |
A character vector that define with a feature ids from SOUNDCOMPARISONS (e. g. "one", "sharp_fem", "near_neut", "on_the_left", " I_will_give", "write_ipv_sg", "your_pl_pl"). |
Anna Smirnova
abvd.feature
, afbo.feature
, autotyp.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
, eurasianphonology.feature
, eurasianphonology.feature
abvd.feature
, afbo.feature
, autotyp.feature
, bivaltyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
, wals.feature
# soundcomparisons.feature(c("sun", "house"))
# soundcomparisons.feature(c("sun", "house"))
Takes any vector of languoids and returns subclassification in the Newick tree format.
subc.lang(x)
subc.lang(x)
x |
A character vector of the languoids (can be written in lower case) |
George Moroz <[email protected]>
aff.lang
, area.lang
, country.lang
, gltc.lang
, iso.lang
, lat.lang
, long.lang
subc.lang('Korean') subc.lang(c('Korean', 'Lechitic'))
subc.lang('Korean') subc.lang(c('Korean', 'Lechitic'))
Language identifiers from UraLex (https://github.com/lexibank/uralex/). This dataset is created for uralex.feature
function.
uralex
uralex
A data frame with 27 rows and 3 variables:
language name from database
Glottocodes
language from lingtypology
This function downloads data from UraLex (https://github.com/lexibank/uralex/) and changes language names to the names from lingtypology database. You need the internet connection.
uralex.feature(na.rm = TRUE)
uralex.feature(na.rm = TRUE)
na.rm |
Logical. If TRUE function removes all languages not available in lingtypology database. By default is TRUE. |
George Moroz <[email protected]>
abvd.feature
, afbo.feature
, autotyp.feature
, bivaltyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, soundcomparisons.feature
, valpal.feature
, vanuatu.feature
, wals.feature
# uralex.feature()
# uralex.feature()
Takes any vector of languages and returns links to glottolog pages.
url.lang(x, popup = "")
url.lang(x, popup = "")
x |
A character vector of languages (can be written in lower case) |
popup |
character vector of strings that will appear in pop-up window of the function map.feature |
George Moroz <[email protected]>
aff.lang
, area.lang
, country.lang
, gltc.lang
, iso.lang
, lat.lang
, long.lang
, subc.lang
url.lang('Korean') url.lang(c('Gangou', 'Hachijo', 'West Circassian', 'Ganai'))
url.lang('Korean') url.lang(c('Gangou', 'Hachijo', 'West Circassian', 'Ganai'))
This function downloads data from ValPal (https://valpal.info) and changes language names to the names from lingtypology database. You need the internet connection.
valpal.feature(na.rm = FALSE)
valpal.feature(na.rm = FALSE)
na.rm |
Logical. If TRUE function removes all languages not available in lingtypology database. By default is FALSE. |
George Moroz <[email protected]>
abvd.feature
, afbo.feature
, autotyp.feature
, bivaltyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, soundcomparisons.feature
, uralex.feature
, vanuatu.feature
, wals.feature
# valpal.feature()
# valpal.feature()
This function downloads data from Vanuatu Voices (https://vanuatuvoices.clld.org/). You need the internet connection.
vanuatu.feature(features, na.rm = TRUE)
vanuatu.feature(features, na.rm = TRUE)
features |
A vector with parameters from Concepts (https://vanuatuvoices.clld.org/parameters)) |
na.rm |
Logical. If TRUE function removes all languages not available in lingtypology database. By default is TRUE. |
Mikhail Leonov
abvd.feature
, afbo.feature
, autotyp.feature
, bivaltyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, soundcomparisons.feature
, uralex.feature
, valpal.feature
, wals.feature
Language identifiers from WALS (https://wals.info/). This dataset is created for wals.feature
function.
wals
wals
A data frame with 2678 rows and 2 variables:
WALS language identifier
Glottocode
This function downloads data from WALS (https://wals.info/) and changes language names to the names from lingtypology database. You need the internet connection.
wals.feature(features, na.rm = TRUE)
wals.feature(features, na.rm = TRUE)
features |
A character vector that define with a feature ids from WALS (e. g. "1a", "21b"). |
na.rm |
Logical. If TRUE function removes all languages not available in lingtypology database. By default is TRUE. |
George Moroz <[email protected]>
abvd.feature
, afbo.feature
, autotyp.feature
, bivaltyp.feature
, eurasianphonology.feature
, oto_mangueanIC.feature
, phoible.feature
, sails.feature
, soundcomparisons.feature
, uralex.feature
, valpal.feature
, vanuatu.feature
# wals.feature(c("1a", "20a"))
# wals.feature(c("1a", "20a"))