blob: 6e63399e53362863c15b1d42794cf0fd570704b2 [file] [log] [blame]
Marc Kupietz5ec92502020-02-18 12:39:27 +01001# library(devtools)
2# install_github("KorAP/RKorAPClient")
3library(RKorAPClient)
4library(ggplot2)
5g <- new("KorAPConnection", verbose=T) %>%
6 frequencyQuery("sozusagen/i", vc=c("corpusSigle=FOLK", "corpusSigle!=FOLK")) %>%
7 ipm() %>%
8 mutate(corpus=c("FOLK", "DeReKo")) %>%
9 ggplot(aes(x = corpus, y = ipm, ymin = conf.low, ymax = conf.high)) +
10 geom_col() +
11 geom_errorbar(width = .3, alpha = .3) +
12 ggtitle("'sozusagen' in written (DeReKo) and spoken corpora (FOLK-excerpt)")
13print(g)