Skip to content

Commit 6c9c81b

Browse files
authored
Merge pull request #13 from openwashdata/dev
Complete package review and add image gallery
2 parents cf2111c + 0bde1d6 commit 6c9c81b

29 files changed

Lines changed: 3989 additions & 13 deletions

.Rbuildignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@
33
^data-raw$
44
^LICENSE\.md$
55
^README\.Rmd$
6+
^CITATION\.cff$
7+
^CLAUDE\.md$
8+
^_pkgdown\.yml$
9+
^docs$
10+
^\.github$
11+
^\.claude$
12+
^vignettes/articles$

DESCRIPTION

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ Imports:
1919
dplyr,
2020
readxl,
2121
openxlsx
22+
Suggests:
23+
gt,
24+
gtExtras,
25+
ggplot2,
26+
tidyverse,
27+
knitr,
28+
rmarkdown,
29+
scales
30+
VignetteBuilder: knitr
2231
Date: 2025-06-02
2332
URL: https://github.com/openwashdata/artesianwells
2433
BugReports: https://github.com/openwashdata/artesianwells/issues

NAMESPACE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# Generated by roxygen2: do not edit by hand
22

3+
importFrom(dplyr,"%>%")
4+
importFrom(openxlsx,write.xlsx)
5+
importFrom(readr,read_csv)
6+
importFrom(readxl,read_excel)

R/artesianwells.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,9 @@
4747
#'
4848
#' # Summary of districts
4949
#' table(artesianwells$district)
50+
#'
51+
#' @importFrom dplyr %>%
52+
#' @importFrom readr read_csv
53+
#' @importFrom readxl read_excel
54+
#' @importFrom openxlsx write.xlsx
5055
"artesianwells"

README.Rmd

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,41 @@ This dataset is complemented by images captured at each site, accessible
5959
via permanent URLs, which provide photographic evidence of physical and
6060
infrastructural conditions.
6161

62+
## At a Glance
63+
64+
```{r district-summary, echo=FALSE, message=FALSE}
65+
library(artesianwells)
66+
library(dplyr)
67+
library(gt)
68+
artesianwells |>
69+
group_by(district) |>
70+
summarise(
71+
well_count = n(),
72+
avg_fill_time = round(mean(seconds_to_fill_20L, na.rm = TRUE), 1),
73+
wells_with_images = sum(!is.na(well_images)),
74+
.groups = "drop"
75+
) |>
76+
arrange(desc(well_count)) |>
77+
gt::gt() |>
78+
gt::cols_label(
79+
district = "District",
80+
well_count = "Total Wells",
81+
avg_fill_time = "Avg. Fill Time (s)",
82+
wells_with_images = "Wells with Images"
83+
) |>
84+
gt::tab_header(
85+
title = "Artesian Wells by District",
86+
subtitle = "Summary of 44 documented well sites"
87+
) |>
88+
gt::fmt_number(
89+
columns = avg_fill_time,
90+
decimals = 1
91+
) |>
92+
gt::as_raw_html()
93+
```
94+
95+
📸 **[View the Image Gallery](https://openwashdata.github.io/artesianwells/articles/image-gallery.html)** - Explore photographs from all 43 documented well sites with interactive tables and visualizations.
96+
6297
**Potential Use Cases**
6398

6499
Water Resource Planning and Management Government bodies and NGOs can
@@ -158,6 +193,19 @@ readr::read_csv("data-raw/dictionary.csv") |>
158193
kableExtra::scroll_box(height = "200px")
159194
```
160195

196+
## Use Cases
197+
198+
### Visual Documentation and Analysis
199+
200+
The package includes a comprehensive [**Image Gallery**](https://openwashdata.github.io/artesianwells/articles/image-gallery.html) vignette that showcases photographs from 43 artesian well sites. This visual documentation helps:
201+
202+
- **Field verification**: Compare physical infrastructure with reported data
203+
- **Condition assessment**: Evaluate well structures and surrounding environments
204+
- **Training materials**: Use real-world examples for capacity building
205+
- **Stakeholder communication**: Present tangible evidence to decision-makers
206+
207+
The gallery organizes wells by district and displays key metrics alongside images, making it easy to identify patterns and prioritize interventions.
208+
161209
## Example
162210

163211
```{r}

README.md

Lines changed: 95 additions & 1 deletion
Large diffs are not rendered by default.

_pkgdown.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ template:
44
includes:
55
in_header: |
66
<script defer data-domain="openwashdata.github.io" src="https://plausible.io/js/script.js"></script>
7+
8+
navbar:
9+
structure:
10+
left: [intro, reference, articles]
11+
right: [search, github]
12+
components:
13+
articles:
14+
text: Gallery
15+
href: articles/image-gallery.html
716

817
home:
918
links:
@@ -31,3 +40,9 @@ reference:
3140
desc: "Access the artesianwells dataset"
3241
contents:
3342
- artesianwells
43+
44+
articles:
45+
- title: "Gallery"
46+
navbar: ~
47+
contents:
48+
- articles/image-gallery

docs/404.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/CLAUDE.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)