# lightbluetitan/agridatasets architecture

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

- Interactive diagram: https://gitdiagram.com/lightbluetitan/agridatasets
- Repository: https://github.com/lightbluetitan/agridatasets

## Overview

agridatasets is an R package that distributes curated agricultural and related datasets for analysis. The documented user workflow is to load the package, optionally list available datasets with `view_datasets_agridatasets()`, then load a chosen dataset with R’s `data()` function and inspect the result. The package’s main product is the bundled data itself; README topics are represented as broad dataset collections. Source excerpts were unavailable, so internal implementation relationships beyond the documented listing workflow are omitted.

Main entry points: [`R/view_datasets_agridatasets.R`](https://github.com/lightbluetitan/agridatasets/blob/main/R/view_datasets_agridatasets.R) (Dataset listing), [`data`](https://github.com/lightbluetitan/agridatasets/tree/main/data) (Bundled datasets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Dataset discovery"]
  node_list_view["Dataset listing"]
  node_data_catalog[("Bundled datasets")]
end

subgraph group_crops["Crop experiments"]
  node_crop_yield[("Crop yields")]
  node_crop_trials[("Crop field trials")]
  node_plant_growth[("Plant growth<br/>[bamboo_growth.rda]")]
  node_pest_disease[("Pest and disease<br/>[apple_canker.rda]")]
end

subgraph group_living["Animals and ecology"]
  node_animal_data[("Animal production")]
  node_survival_reproduction[("Survival and reproduction")]
  node_ecology[("Ecology studies")]
end

subgraph group_soils["Soils and food"]
  node_soil_classification[("Soil classification")]
  node_soil_suitability[("Soil suitability<br/>[arabica_soil.rda]")]
  node_food_quality[("Food composition")]
  node_market_stats[("Market statistics")]
end

node_user(("R user"))

node_user -->|"lists datasets"| node_list_view
node_list_view -->|"lists from"| node_data_catalog
node_user -->|"loads dataset"| node_data_catalog

click node_list_view "https://github.com/lightbluetitan/agridatasets/blob/main/R/view_datasets_agridatasets.R"
click node_data_catalog "https://github.com/lightbluetitan/agridatasets/tree/main/data"
click node_crop_yield "https://github.com/lightbluetitan/agridatasets/blob/main/data/strawberry_yield.rda"
click node_crop_trials "https://github.com/lightbluetitan/agridatasets/blob/main/data/wheat_splitsplit.rda"
click node_plant_growth "https://github.com/lightbluetitan/agridatasets/blob/main/data/bamboo_growth.rda"
click node_pest_disease "https://github.com/lightbluetitan/agridatasets/blob/main/data/apple_canker.rda"
click node_animal_data "https://github.com/lightbluetitan/agridatasets/blob/main/data/cattle_butterfat.rda"
click node_survival_reproduction "https://github.com/lightbluetitan/agridatasets/blob/main/data/black_duck_survival.rda"
click node_ecology "https://github.com/lightbluetitan/agridatasets/blob/main/data/earthworm_population.rda"
click node_soil_classification "https://github.com/lightbluetitan/agridatasets/blob/main/data/soil_munsell_colors.rda"
click node_soil_suitability "https://github.com/lightbluetitan/agridatasets/blob/main/data/arabica_soil.rda"
click node_food_quality "https://github.com/lightbluetitan/agridatasets/blob/main/data/coffee_composition.rda"
click node_market_stats "https://github.com/lightbluetitan/agridatasets/blob/main/data/avocado_us_sale.rda"

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_list_view,node_data_catalog,node_user toneBlue
class node_crop_yield,node_crop_trials,node_plant_growth,node_pest_disease toneAmber
class node_animal_data,node_survival_reproduction,node_ecology toneMint
class node_soil_classification,node_soil_suitability,node_food_quality,node_market_stats toneRose
```

## Components

### Dataset discovery

- [Dataset listing](https://github.com/lightbluetitan/agridatasets/blob/main/R/view_datasets_agridatasets.R): `R/view_datasets_agridatasets.R`
- [Bundled datasets](https://github.com/lightbluetitan/agridatasets/tree/main/data): `data`

### Crop experiments

- [Crop yields](https://github.com/lightbluetitan/agridatasets/blob/main/data/strawberry_yield.rda): `data/strawberry_yield.rda`
- [Crop field trials](https://github.com/lightbluetitan/agridatasets/blob/main/data/wheat_splitsplit.rda): `data/wheat_splitsplit.rda`
- [Plant growth](https://github.com/lightbluetitan/agridatasets/blob/main/data/bamboo_growth.rda): `data/bamboo_growth.rda`
- [Pest and disease](https://github.com/lightbluetitan/agridatasets/blob/main/data/apple_canker.rda): `data/apple_canker.rda`

### Animals and ecology

- [Animal production](https://github.com/lightbluetitan/agridatasets/blob/main/data/cattle_butterfat.rda): `data/cattle_butterfat.rda`
- [Survival and reproduction](https://github.com/lightbluetitan/agridatasets/blob/main/data/black_duck_survival.rda): `data/black_duck_survival.rda`
- [Ecology studies](https://github.com/lightbluetitan/agridatasets/blob/main/data/earthworm_population.rda): `data/earthworm_population.rda`

### Soils and food

- [Soil classification](https://github.com/lightbluetitan/agridatasets/blob/main/data/soil_munsell_colors.rda): `data/soil_munsell_colors.rda`
- [Soil suitability](https://github.com/lightbluetitan/agridatasets/blob/main/data/arabica_soil.rda): `data/arabica_soil.rda`
- [Food composition](https://github.com/lightbluetitan/agridatasets/blob/main/data/coffee_composition.rda): `data/coffee_composition.rda`
- [Market statistics](https://github.com/lightbluetitan/agridatasets/blob/main/data/avocado_us_sale.rda): `data/avocado_us_sale.rda`

### Other components

- **R user**

## Connections

- R user → Dataset listing: lists datasets (evidence: `README.md`)
- Dataset listing → Bundled datasets: lists from (evidence: `README.md`)
- R user → Bundled datasets: loads dataset (evidence: `README.md`)
