Przeglądaj źródła

add some example analysing

package
flavis 4 lat temu
rodzic
commit
356c98e926
1 zmienionych plików z 19 dodań i 0 usunięć
  1. +19
    -0
      analysis/funwithdata.R

+ 19
- 0
analysis/funwithdata.R Wyświetl plik

@@ -0,0 +1,19 @@
library(tidyverse)
source("../scraping/fetch.R")
source("../scraping/parse.R")
source("../scraping/repair.R")

# fetch_all()
read_all() %>% repair() -> res

reden <- res$reden
redner <- res$redner
talks <- res$talks

# first tries

left_join(reden, redner, by=c("redner" = "id")) %>%
group_by(fraktion) %>%
summarize(n = n()) %>%
ggplot(aes(x = fraktion, y = n)) +
geom_bar(stat = "identity")

Ładowanie…
Anuluj
Zapisz