# sorrychoe/rbigkinds architecture

> Architecture diagram of the GitHub repository sorrychoe/rbigkinds, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sorrychoe/rbigkinds
- Repository: https://github.com/sorrychoe/rbigkinds

## Overview

RBigKinds is an R toolkit for low-code analysis of data extracted from Korea’s BigKinds news archive. The documented workflow loads an Excel export, then passes the resulting data frame to analysis functions such as press counting and keyword extraction. The tree also indicates separate association, clustering, network, topic-modeling, and visualization capabilities. Source excerpts were not provided, so relationships beyond the README examples are not inferred from filenames.

Main entry points: [`R/press_counter.R`](https://github.com/sorrychoe/rbigkinds/blob/release/R/press_counter.R) (Press counts), [`R/RBigKinds.R`](https://github.com/sorrychoe/rbigkinds/blob/release/R/RBigKinds.R) (Keyword counts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_input["Input and preparation"]
  node_day_range["Day ranges<br/>[day_range.R]"]
  node_data_helpers["Data utilities<br/>[data.R]"]
  node_global_helpers["Global utilities<br/>[global.R]"]
end

subgraph group_analysis["Text analysis"]
  node_press_count["Press counts<br/>[press_counter.R]"]
  node_keyword_data["Keyword counts<br/>[RBigKinds.R]"]
  node_association["Association<br/>[association.R]"]
  node_clustering["Clustering<br/>[clustering.R]"]
  node_network["Network analysis<br/>[network_analysis.R]"]
  node_topic_model["Topic modeling<br/>[topic_model.R]"]
end

subgraph group_visual["Visualization"]
  node_barplot["Bar plots<br/>[barplot.R]"]
  node_wordcloud["Word clouds<br/>[wordcloud.R]"]
end

node_analyst(("Analyst"))
node_export["Excel export"]

node_analyst -->|"loads"| node_export
node_export -->|"provides data"| node_press_count
node_analyst -->|"calls"| node_press_count
node_export -->|"provides data"| node_keyword_data
node_analyst -->|"calls"| node_keyword_data

click node_press_count "https://github.com/sorrychoe/rbigkinds/blob/release/R/press_counter.R"
click node_keyword_data "https://github.com/sorrychoe/rbigkinds/blob/release/R/RBigKinds.R"
click node_association "https://github.com/sorrychoe/rbigkinds/blob/release/R/association.R"
click node_clustering "https://github.com/sorrychoe/rbigkinds/blob/release/R/clustering.R"
click node_network "https://github.com/sorrychoe/rbigkinds/blob/release/R/network_analysis.R"
click node_topic_model "https://github.com/sorrychoe/rbigkinds/blob/release/R/topic_model.R"
click node_barplot "https://github.com/sorrychoe/rbigkinds/blob/release/R/barplot.R"
click node_wordcloud "https://github.com/sorrychoe/rbigkinds/blob/release/R/wordcloud.R"
click node_day_range "https://github.com/sorrychoe/rbigkinds/blob/release/R/day_range.R"
click node_data_helpers "https://github.com/sorrychoe/rbigkinds/blob/release/R/data.R"
click node_global_helpers "https://github.com/sorrychoe/rbigkinds/blob/release/R/global.R"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_day_range,node_data_helpers,node_global_helpers toneBlue
class node_press_count,node_keyword_data,node_association,node_clustering,node_network,node_topic_model toneAmber
class node_barplot,node_wordcloud toneMint
class node_analyst,node_export toneIndigo
```

## Components

### Input and preparation

- [Day ranges](https://github.com/sorrychoe/rbigkinds/blob/release/R/day_range.R): `R/day_range.R`
- [Data utilities](https://github.com/sorrychoe/rbigkinds/blob/release/R/data.R): `R/data.R`
- [Global utilities](https://github.com/sorrychoe/rbigkinds/blob/release/R/global.R): `R/global.R`

### Text analysis

- [Press counts](https://github.com/sorrychoe/rbigkinds/blob/release/R/press_counter.R): `R/press_counter.R`
- [Keyword counts](https://github.com/sorrychoe/rbigkinds/blob/release/R/RBigKinds.R): `R/RBigKinds.R`
- [Association](https://github.com/sorrychoe/rbigkinds/blob/release/R/association.R): `R/association.R`
- [Clustering](https://github.com/sorrychoe/rbigkinds/blob/release/R/clustering.R): `R/clustering.R`
- [Network analysis](https://github.com/sorrychoe/rbigkinds/blob/release/R/network_analysis.R): `R/network_analysis.R`
- [Topic modeling](https://github.com/sorrychoe/rbigkinds/blob/release/R/topic_model.R): `R/topic_model.R`

### Visualization

- [Bar plots](https://github.com/sorrychoe/rbigkinds/blob/release/R/barplot.R): `R/barplot.R`
- [Word clouds](https://github.com/sorrychoe/rbigkinds/blob/release/R/wordcloud.R): `R/wordcloud.R`

### Other components

- **Analyst**
- **Excel export**

## Connections

- Analyst → Excel export: loads (evidence: `README.md`)
- Excel export → Press counts: provides data (evidence: `README.md`)
- Analyst → Press counts: calls (evidence: `README.md`)
- Excel export → Keyword counts: provides data (evidence: `README.md`)
- Analyst → Keyword counts: calls (evidence: `README.md`)
