Last Updated on April 1, 2022 by shibatau
I. What shall we learn?
Lets get the linguistic and cultural data from the following sites and create plots using glottospace. You can read the tutorial here:
II. What is glottospace
I reads at glottospace.
The glottospace package facilitates the geospatial analysis of linguistic and cultural data. The aim of this package is to provide a streamlined workflow for working with spatio-linguistic data, including data import, cleaning, exploration, visualization and export. For example, with glottospace you can quickly match your own linguistic data to a location and plot it on a map. You can also calculate distances between languages based on their location or linguistic features and visualize those distances. In addition, with glottospace you can easily access global databases such as glottolog, WALS and D-PLACE from R and integrate them with your own data.
III. Sample scripts
I have run the codes in RStudio on my iMac.
# install devtools install.packages("devtools") # install the development version devtools::install_github("SietzeN/glottospace", INSTALL_opts=c("--no-multiarch")) # if get an error, namespace ‘lifecycle’ 1.0.0 is already loaded, but >= 1.0.1 is required # install.packages("lifecycle") # import libraries library(tidyverse) library(glottospace) # Plot point data: glottomap(continent = "Asia", color = "isolate") # filter by japan df_japan <- glottofilter(country = "Japan") # convertr it to a tibble df_japan_tibble <- as_tibble(df_japan) df_japan_tibble # select some colums df_japan_tibble |> select("glottocode", "name", "geometry") |> head()
The plot of the languages in Asia:
The table of the data of the languages in Japan:
To be continued.