# cran/jamba architecture

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

- Interactive diagram: https://gitdiagram.com/cran/jamba
- Repository: https://github.com/cran/jamba

## Overview

jamba is an R utility package for bioinformatics-oriented data analysis and visualization. Its principal user workflow is to call a focused function on data and use the returned or displayed result; the README describes independent capabilities rather than a single chained pipeline. The graph groups those capabilities and includes a data-manipulation layer. Source excerpts were unavailable, so relationships are limited to README-documented usage and optional integrations.

Main entry points: [`R/jamba-export.r`](https://github.com/cran/jamba/blob/master/R/jamba-export.r) (Excel read and write), [`R/jamba-kable-coloring.R`](https://github.com/cran/jamba/blob/master/R/jamba-kable-coloring.R) (Colored tables), [`R/jamba-mixedSort.R`](https://github.com/cran/jamba/blob/master/R/jamba-mixedSort.R) (Mixed sorting), [`R/jamba-plots.r`](https://github.com/cran/jamba/blob/master/R/jamba-plots.r) (Base plot helpers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sorting["Alphanumeric sorting"]
  node_mixed_sort["Mixed sorting<br/>[jamba-mixedSort.R]"]
end

subgraph group_visualization["Plotting and labels"]
  node_plot_helpers["Base plot helpers<br/>[jamba-plots.r]"]
  node_plot_density["Density plots<br/>[jam-calc-density.R]"]
  node_image_colors["Color matrix images"]
  node_axis_helpers["Axis helpers<br/>[jamba-axis.R]"]
  node_text_labels["Plot labels<br/>[jamba-drawlabels.R]"]
  node_shadow_text["Shadow text<br/>[jamba-shadowText.R]"]
end

subgraph group_color["Color tools"]
  node_color_conversion["Color conversion<br/>[jamba-colors.r]"]
  node_color_ramps["Color ramps<br/>[jamba-rainbow2.R]"]
  node_color_dither["Color dithering"]
  node_color_display["Color display<br/>[jamba-showcolors.R]"]
  node_debug_output["Colored output<br/>[jamba-printdebug.R]"]
end

subgraph group_excel["Excel exchange"]
  node_excel_io["Excel read and write<br/>[jamba-export.r]"]
  node_table_color["Colored tables"]
end

subgraph group_data["Data utilities"]
  node_data_frames["List and data frames<br/>[jamba-lldf.R]"]
  node_string_utils["String utilities<br/>[jamba-string.r]"]
  node_missing_values["Missing-value cleanup<br/>[jamba-rmnas.R]"]
  node_row_stats["Row summaries"]
end

node_analyst(("R analyst"))
node_openxlsx["openxlsx package"]
node_kable_extra["kableExtra package"]

node_analyst -->|"sorts data"| node_mixed_sort
node_analyst -->|"creates plots"| node_plot_helpers
node_analyst -->|"plots density"| node_plot_density
node_analyst -->|"plots color matrix"| node_image_colors
node_analyst -->|"draws axes"| node_axis_helpers
node_analyst -->|"draws labels"| node_text_labels
node_analyst -->|"draws text"| node_shadow_text
node_analyst -->|"converts colors"| node_color_conversion
node_analyst -->|"creates palettes"| node_color_ramps
node_analyst -->|"splits colors"| node_color_dither
node_analyst -->|"displays colors"| node_color_display
node_analyst -->|"prints colored output"| node_debug_output
node_analyst -->|"exchanges workbooks"| node_excel_io
node_analyst -->|"colors tables"| node_table_color
node_analyst -->|"handles data"| node_data_frames
node_analyst -->|"processes strings"| node_string_utils
node_analyst -->|"cleans values"| node_missing_values
node_analyst -->|"summarizes rows"| node_row_stats
node_excel_io -.->|"wraps package"| node_openxlsx
node_table_color -.->|"uses package"| node_kable_extra

click node_mixed_sort "https://github.com/cran/jamba/blob/master/R/jamba-mixedSort.R"
click node_plot_helpers "https://github.com/cran/jamba/blob/master/R/jamba-plots.r"
click node_plot_density "https://github.com/cran/jamba/blob/master/R/jam-calc-density.R"
click node_image_colors "https://github.com/cran/jamba/blob/master/R/jamba-imagebycolors.R"
click node_axis_helpers "https://github.com/cran/jamba/blob/master/R/jamba-axis.R"
click node_text_labels "https://github.com/cran/jamba/blob/master/R/jamba-drawlabels.R"
click node_shadow_text "https://github.com/cran/jamba/blob/master/R/jamba-shadowText.R"
click node_color_conversion "https://github.com/cran/jamba/blob/master/R/jamba-colors.r"
click node_color_ramps "https://github.com/cran/jamba/blob/master/R/jamba-rainbow2.R"
click node_color_dither "https://github.com/cran/jamba/blob/master/R/jamba-colordither.R"
click node_color_display "https://github.com/cran/jamba/blob/master/R/jamba-showcolors.R"
click node_debug_output "https://github.com/cran/jamba/blob/master/R/jamba-printdebug.R"
click node_excel_io "https://github.com/cran/jamba/blob/master/R/jamba-export.r"
click node_table_color "https://github.com/cran/jamba/blob/master/R/jamba-kable-coloring.R"
click node_data_frames "https://github.com/cran/jamba/blob/master/R/jamba-lldf.R"
click node_string_utils "https://github.com/cran/jamba/blob/master/R/jamba-string.r"
click node_missing_values "https://github.com/cran/jamba/blob/master/R/jamba-rmnas.R"
click node_row_stats "https://github.com/cran/jamba/blob/master/R/jamba-rowgroupmeans-madoutliers.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_mixed_sort toneBlue
class node_plot_helpers,node_plot_density,node_image_colors,node_axis_helpers,node_text_labels,node_shadow_text toneAmber
class node_color_conversion,node_color_ramps,node_color_dither,node_color_display,node_debug_output toneMint
class node_excel_io,node_table_color toneRose
class node_data_frames,node_string_utils,node_missing_values,node_row_stats,node_analyst,node_openxlsx,node_kable_extra toneIndigo
```

## Components

### Alphanumeric sorting

- [Mixed sorting](https://github.com/cran/jamba/blob/master/R/jamba-mixedSort.R): `R/jamba-mixedSort.R`

### Plotting and labels

- [Base plot helpers](https://github.com/cran/jamba/blob/master/R/jamba-plots.r): `R/jamba-plots.r`
- [Density plots](https://github.com/cran/jamba/blob/master/R/jam-calc-density.R): `R/jam-calc-density.R`
- [Color matrix images](https://github.com/cran/jamba/blob/master/R/jamba-imagebycolors.R): `R/jamba-imagebycolors.R`
- [Axis helpers](https://github.com/cran/jamba/blob/master/R/jamba-axis.R): `R/jamba-axis.R`
- [Plot labels](https://github.com/cran/jamba/blob/master/R/jamba-drawlabels.R): `R/jamba-drawlabels.R`
- [Shadow text](https://github.com/cran/jamba/blob/master/R/jamba-shadowText.R): `R/jamba-shadowText.R`

### Color tools

- [Color conversion](https://github.com/cran/jamba/blob/master/R/jamba-colors.r): `R/jamba-colors.r`
- [Color ramps](https://github.com/cran/jamba/blob/master/R/jamba-rainbow2.R): `R/jamba-rainbow2.R`
- [Color dithering](https://github.com/cran/jamba/blob/master/R/jamba-colordither.R): `R/jamba-colordither.R`
- [Color display](https://github.com/cran/jamba/blob/master/R/jamba-showcolors.R): `R/jamba-showcolors.R`
- [Colored output](https://github.com/cran/jamba/blob/master/R/jamba-printdebug.R): `R/jamba-printdebug.R`

### Excel exchange

- [Excel read and write](https://github.com/cran/jamba/blob/master/R/jamba-export.r): `R/jamba-export.r`
- [Colored tables](https://github.com/cran/jamba/blob/master/R/jamba-kable-coloring.R): `R/jamba-kable-coloring.R`

### Data utilities

- [List and data frames](https://github.com/cran/jamba/blob/master/R/jamba-lldf.R): `R/jamba-lldf.R`
- [String utilities](https://github.com/cran/jamba/blob/master/R/jamba-string.r): `R/jamba-string.r`
- [Missing-value cleanup](https://github.com/cran/jamba/blob/master/R/jamba-rmnas.R): `R/jamba-rmnas.R`
- [Row summaries](https://github.com/cran/jamba/blob/master/R/jamba-rowgroupmeans-madoutliers.R): `R/jamba-rowgroupmeans-madoutliers.R`

### Other components

- **R analyst**
- **openxlsx package**
- **kableExtra package**

## Connections

- R analyst → Mixed sorting: sorts data (evidence: `README.md`)
- R analyst → Base plot helpers: creates plots (evidence: `README.md`)
- R analyst → Density plots: plots density (evidence: `README.md`)
- R analyst → Color matrix images: plots color matrix (evidence: `README.md`)
- R analyst → Axis helpers: draws axes (evidence: `README.md`)
- R analyst → Plot labels: draws labels (evidence: `README.md`)
- R analyst → Shadow text: draws text (evidence: `README.md`)
- R analyst → Color conversion: converts colors (evidence: `README.md`)
- R analyst → Color ramps: creates palettes (evidence: `README.md`)
- R analyst → Color dithering: splits colors (evidence: `README.md`)
- R analyst → Color display: displays colors (evidence: `README.md`)
- R analyst → Colored output: prints colored output (evidence: `README.md`)
- R analyst → Excel read and write: exchanges workbooks (evidence: `README.md`)
- R analyst → Colored tables: colors tables (evidence: `README.md`)
- R analyst → List and data frames: handles data (evidence: `README.md`)
- R analyst → String utilities: processes strings (evidence: `README.md`)
- R analyst → Missing-value cleanup: cleans values (evidence: `README.md`)
- R analyst → Row summaries: summarizes rows (evidence: `README.md`)
- Excel read and write → openxlsx package: wraps package (evidence: `README.md`)
- Colored tables → kableExtra package: uses package (evidence: `README.md`)
