R: Language Mapping and Geospatial Analysis of Linguistic and Cultural Data, glottospace ver. 2

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:

https://github.com/SietzeN/glottospace

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 glottologWALS 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.

About shibatau

I was born and grown up in Kyoto. I studied western philosophy at the University and specialized in analytic philosophy, especially Ludwig Wittgenstein at the postgraduate school. I'm interested in new technology, especially machine learning and have been learning R language for two years and began to learn Python last summer. Listening toParamore, Sia, Amazarashi and MIyuki Nakajima. Favorite movies I've recently seen: "FREEHELD". Favorite actors and actresses: Anthony Hopkins, Denzel Washington, Ellen Page, Meryl Streep, Mia Wasikowska and Robert DeNiro. Favorite books: Fyodor Mikhailovich Dostoyevsky, "The Karamazov Brothers", Shinran, "Lamentations of Divergences". Favorite phrase: Salvation by Faith. Twitter: @shibatau

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.