Script Use of Lexicometry in Sensometrics

Figure 5. Words related to appreciation

sel.apprec <-which(rownames(as.data.frame(res.mfact.23$freq.sup))
%in%c("agréable","agressif","asséchant","beau","bon","chaleureux","complexe","curieux","cos",
"défaut","dens","desequilibri","équilibré","généreux","onctueux","particulier",
"puissant","rond","souple","structuré","complex","velouté","gouleyant",
"malaqualitat","pinassa","potencia","rodó","secant","limite","plat","mou"))
sel.apprec

plot.MFA(res.mfact.23,choix=c("freq"),invisible=c("row","col"),axes=c(1,2),select=sel.apprec ,unselect=1,
legend=list(plot=FALSE),habillage="none",autoLab = c("yes"),cex=0.8,
title="",graph.type="classic")

 

French translation of 22 words

df.apprec.Fr <- data.frame(orig= "agréable", transl="pleasant")
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "agressif", transl="aggressive") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "asséchant", transl="drying") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "beau", transl="beautiful") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "bon", transl="good") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "chaleureux", transl="warm") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "complexe", transl="complex") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "curieux", transl="curious") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "défaut", transl="defect") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "équilibré", transl="balanced") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "généreux", transl="generous") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "gouleyant", transl="tasteful") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "limite", transl="limit") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "mou", transl="soft") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "onctueux", transl="unctuous") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "particulier", transl="particular") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "plat", transl="flat") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "puissant", transl="powerful") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "rond", transl="round") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "souple", transl="supple") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "structuré", transl="structured") )
df.apprec.Fr <- rbind(df.apprec.Fr, data.frame(orig= "velouté", transl="velvet") )
df.apprec.Fr$lang <- "Fr"

Catalan translation of 8 words

df.apprec.Cat <- data.frame(orig= "complex", transl="high")
df.apprec.Cat <- rbind(df.apprec.Cat, data.frame(orig= "cos", transl="full_bodied") )
df.apprec.Cat <- rbind(df.apprec.Cat, data.frame(orig= "dens", transl="dense") )
df.apprec.Cat <- rbind(df.apprec.Cat, data.frame(orig= "desequilibri", transl="imbalance") )
df.apprec.Cat <- rbind(df.apprec.Cat, data.frame(orig= "malaqualitat", transl="poorquality") )
df.apprec.Cat <- rbind(df.apprec.Cat, data.frame(orig= "pinassa", transl="pinassa") )
df.apprec.Cat <- rbind(df.apprec.Cat, data.frame(orig= "rodó", transl="round") )
df.apprec.Cat <- rbind(df.apprec.Cat, data.frame(orig= "secant", transl="drying") )
df.apprec.Cat$lang <- "Cat"

 

To join French coordinates and their translation:

df.apprec.Fr

Coord.Fr.Fig5 <- merge(res.mfact.23$freq.sup$coord[1:135,], df.apprec.Fr, by.x=0, by.y="orig")
Coord.Fr.Fig5[,c(1:5,9,10)]

 

 

To join Catalan coordinates and their translation:

df.apprec.Cat

Coord.Cat.Fig5 <- merge(res.mfact.23$freq.sup$coord[136:nrow(res.mfact.23$freq.sup$coord), ], df.apprec.Cat, by.x=0, by.y="orig")
Coord.Cat.Fig5[,c(1:5,9,10)]

 

To join French and Catalan coordinates:

Coord.Fig5 <- rbind(Coord.Fr.Fig5, Coord.Cat.Fig5)
Coord.Fig5[,c(1:5,9,10)]

Coord.Fig5$lang <- as.factor(Coord.Fig5$lang )
set.seed(1234)
Figure5 <- ggplot(Coord.Fig5)+
theme_light() + theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank())+
xlab(labx)+ ylab(laby) + coord_fixed()+
geom_hline(yintercept=0, linetype="dashed", color = "grey")+
geom_vline(xintercept=0, linetype="dashed", color = "grey")+
geom_text_repel(size=5, fontface = font.type.FRCat[Coord.Fig5$lang], max.overlaps=100,
box.padding = unit(0.35, "lines"),
aes(x=Dim.1, y=Dim.2, label = transl, color=lang))+
theme( axis.text.x = element_text(size=rel(1.6)))+
theme( axis.text.y = element_text(size=rel(1.6)))+
labs(x=labx)+labs(y=laby)+
theme(axis.title.x= element_text(size=17, face="bold"))+
theme(axis.title.y= element_text(size=17, face="bold"))+
theme(plot.margin = grid::unit(c(t=5,r= 2,b=5, l=2), "mm"))+
scale_color_manual(name="Language",
labels=c("Catalan","French"),
values = setNames(col.margin, levels(Coord.Fig4$lang))) +
theme(axis.title.x = element_text(margin=margin(t=10))) +
theme(panel.border = element_rect(colour = "black", fill=NA, linewidth=1)) +
theme(legend.position = "none")+
labs(title = "Words originally in <b style='color:#FF0000'>**_French_**</b> and **Catalan**")+
theme(plot.title = element_markdown(lineheight = 1.1, hjust=1, size=20))+
ylim(-1.9, 1.1)+
ggtitle("Figure 5. Words related to appreciation")

 

To plot Figure 5:

set.seed(1234)
Figure5