stex <- read.csv("/Users/cecelia/Downloads/stex.csv") 

This is a quantitaive analysis on a dataset titled “Adult Language Learning Profile” which was found on Kaggle. This dataset includes a wealth of information on the proficiency and linguistic characteristics of adult language learners in the Netherlands. I chose it because it initially seemed to have a abundance of data I could use to get some meaningful visulizalizations that highlighted interesting points about Adult L2 learning. To get a better sense of the dataset, the following visulizations show some of what is included in the data:

library(ggplot2)
language_count <- aggregate(L1 ~ Family, stex, FUN = function(x) length(unique(x)))
ggplot(data = language_count, aes(x = Family, y = L1, fill = Family)) +
  geom_bar(stat = "identity") +
  labs(x = "Language Family", y = "Number of Languages", title = "Number of Languages in Each Family") +
  theme(axis.text.x = element_text(angle = 45, hjust = 1))

The above bar graph shows the language famiilies that the L1 (native language) of each particiapant belongs to. It can be seen that most particpants in this dataset have a native language from the Indo-European lanuage family. The bar graph below shows the relationship each language family has to speaking scores. “Speaking” scores were taken from Speaking proficiency test score on the State Examination of Dutch as a Second Language. Some language families have many outliers (red) and others do have any. The boxplots are arranged in ascedning order, so that the language family with the highest Speaking Score means are on the right. I found it interesting that the language family that performed the best on average was Uralic, performing even higher than that of the Indo-European category.

median_scores <- aggregate(Speaking ~ Family, data = stex, FUN = median)
median_scores <- median_scores[order(median_scores$Speaking), ]
stex$Family <- factor(stex$Family, levels = median_scores$Family)
ggplot(data = stex, aes(x = Family, y = Speaking)) +
  geom_boxplot(fill = "skyblue", outlier.colour = "red", outlier.shape = 1) +
  labs(x = "Language Family", y = "Speaking Score", title = "Language Family vs Speaking Score") +
  theme(axis.text.x = element_text(angle = 45, hjust = 1))

After getting an overview of what was included in this dataset, I started to use data visulaizations to try ask more specific questions. The violin plot below depicts the relationship between sex and speaking score. It seems there is only a slight difference- as females had a slightly higher average score than men.

library(ggplot2)
ggplot(data = stex, aes(x = Sex, y = Speaking, fill = Sex)) +
  geom_violin() +
  scale_fill_manual(values = c("blue", "pink"), breaks = c("Male", "Female")) +  
  labs(x = "Sex", y = "Speaking Score", title = "Sex vs Speaking Score")

The scatterplot below compares Age at Arrival to the Netherlands with Speaking profiecency scores. As one can tell, there are many data points plotted which can make it hard to get any meaningful information from this graph. What it does show is that the dataset includes many people who were born in Netherlands (Age 0). It also shows AoA doesn’t seem to a factor that impacted Speaking scores very much, if at all.

library(ggplot2)
stex$AaA <- as.numeric(as.character(stex$AaA))
stex$Speaking <- as.numeric(stex$Speaking)
ggplot(data = stex, aes(x = AaA, y = Speaking)) +
  geom_point(color = "green", alpha = .5) +
  labs(x = "Age at Arrival", y = "Speaking Proficiency Score", title = "Age at Arrival vs Speaking Proficiency")+
  scale_x_continuous(breaks = seq(min(stex$AaA), max(stex$AaA), by = 10))+
  scale_y_continuous(breaks = seq(0, max(stex$Speaking), by = 50),
                     labels = scales::comma_format(), expand = c(0.05, 0.05))

To conclude my analysis, I found that the dataset was quite large and difficult to extrapolate meaningful information from. I also found myself confused about the actual data columns and how they related to each other. For example, the dataset included many particpants with an L2 of “Monolingual”, which I assumed meant they only knew their native language. However, every participant had a Dutch Speaking Profiecency Test Score. Becaused of this, it was unclear whether the dataset was focusing on adult learners of Dutch, which is the Netherlands official language, or if it was focusing on any language an adult language learning in the Netherlands might be learning. Overall, I felt that this analysis allowed me to hone my skills in creating visualizations in R, while also highlighting the importance of using datasets that are clear and well-organized.