blob: 87b93b4acc6f9467fe6d2e3044f4fb47d00a9484 [file] [log] [blame]
Marc Kupietz5ec92502020-02-18 12:39:27 +01001# library(devtools)
2# install_github("KorAP/RKorAPClient")
3library(RKorAPClient)
4library(ggplot2)
Marc Kupietzcf1771d2020-03-04 16:03:04 +01005g <- new("KorAPConnection", verbose=TRUE) %>%
Marc Kupietz5ec92502020-02-18 12:39:27 +01006 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)