Description Usage Arguments Examples
Prints a plot comparing the profiles of different adjectives
1 | PrintProfilePlot(abs_table, adjectives, min_pc = 4, vertical = FALSE)
|
abs_table |
cross-tabulated table with absolute numbers |
adjectives |
a vector consisting of th adjectives / constructions you want to compare |
min_pc |
minimum percentage value to be printed as text on the plot |
vertical |
wether or not to output the text labels vertically |
1 2 3 4 5 6 7 8 9 | # Example 1:
library(stockholm)
bolshaja$otdelno <- apply(bolshaja,1,function(r)gsub("\\[adj\\]",r[["adj"]],r[["pattern"]]))
bolshaja_moj <- subset(bolshaja, grepl("moj",pattern))
bolshaja_bez_moj <- subset(bolshaja, !grepl("moj",pattern))
tablica_s_absoljutnymi_tsiframi_moj <- table(bolshaja_moj$participants, bolshaja_moj$otdelno)
tablica_s_absoljutnymi_tsiframi_bez_moj <- table(bolshaja_bez_moj$participants, bolshaja_bez_moj$otdelno)
PrintProfilePlot(tablica_s_absoljutnymi_tsiframi_moj,c("milyj moj","moj milyj","dorogoj moj","moj dorogoj"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.