{"id":38654456,"url":"https://github.com/openwashdata/ploswater","last_synced_at":"2026-01-17T09:25:36.081Z","repository":{"id":271579508,"uuid":"913808621","full_name":"openwashdata/ploswater","owner":"openwashdata","description":"Repository with data on publications from PLOS Water Journal","archived":false,"fork":false,"pushed_at":"2025-01-08T15:44:43.000Z","size":4017,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T23:52:53.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://openwashdata.github.io/ploswater/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openwashdata.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-08T11:48:39.000Z","updated_at":"2025-01-08T15:44:47.000Z","dependencies_parsed_at":"2025-01-08T17:04:15.744Z","dependency_job_id":null,"html_url":"https://github.com/openwashdata/ploswater","commit_stats":null,"previous_names":["openwashdata/ploswater"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/openwashdata/ploswater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fploswater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fploswater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fploswater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fploswater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openwashdata","download_url":"https://codeload.github.com/openwashdata/ploswater/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fploswater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T09:25:34.515Z","updated_at":"2026-01-17T09:25:36.031Z","avatar_url":"https://github.com/openwashdata.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\nalways_allow_html: true\neditor_options: \n  markdown: \n    wrap: 72\n  chunk_output_type: console\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\",\n  message = FALSE,\n  warning = FALSE,\n  fig.retina = 2,\n  fig.align = 'center'\n)\n```\n\n# ploswater\n\n\u003c!-- badges: start --\u003e\n\n[![License: CC BY\n4.0](https://img.shields.io/badge/License-CC_BY_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by/4.0/)\n[![R-CMD-check](https://github.com/openwashdata/ploswater/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/openwashdata/ploswater/actions/workflows/R-CMD-check.yaml)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.14616993.svg)](https://zenodo.org/doi/10.5281/zenodo.14616993)\n\n\u003c!-- badges: end --\u003e\n\nThe goal of ploswater is to make available data on publication trends from the [PLOS Water Journal](https://journals.plos.org/water/).\n\n## Installation\n\nYou can install the development version of ploswater from\n[GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"openwashdata/ploswater\")\n```\n\n```{r}\n## Run the following code in console if you don't have the packages\n## install.packages(c(\"dplyr\", \"knitr\", \"readr\", \"stringr\", \"gt\", \"kableExtra\"))\nlibrary(dplyr)\nlibrary(knitr)\nlibrary(readr)\nlibrary(stringr)\nlibrary(gt)\nlibrary(kableExtra)\n```\n\nAlternatively, you can download the individual datasets as a CSV or XLSX\nfile from the table below.\n\n1.  Click Download CSV. A window opens that displays the CSV in\n    your browser.\n2.  Right-click anywhere inside the window and select \"Save Page As...\".\n3.  Save the file in a folder of your choice.\n\n```{r, echo=FALSE, message=FALSE, warning=FALSE}\n\nextdata_path \u003c- \"https://github.com/openwashdata/ploswater/raw/main/inst/extdata/\"\n\nread_csv(\"data-raw/dictionary.csv\") |\u003e \n  distinct(file_name) |\u003e \n  dplyr::mutate(file_name = str_remove(file_name, \".rda\")) |\u003e \n  dplyr::rename(dataset = file_name) |\u003e \n  mutate(\n    CSV = paste0(\"[Download CSV](\", extdata_path, dataset, \".csv)\"),\n    XLSX = paste0(\"[Download XLSX](\", extdata_path, dataset, \".xlsx)\")\n  ) |\u003e \n  knitr::kable()\n\n```\n\n## Data\n\nThe package provides access to data from publications in the [PLOS Water Journal](https://journals.plos.org/water/). This data includes information on publication types, SDGs targeted, authors, institutions, and more.\n\n```{r}\nlibrary(ploswater)\n```\n\n### ploswater\n\nThe dataset `ploswater` contains data about ... It has\n`r nrow(ploswater)` observations and `r ncol(ploswater)`\nvariables\n\n```{r}\nploswater |\u003e \n  select(1:10) |\u003e  # Select first 10 columns\n  head(3) |\u003e \n  gt::gt() |\u003e\n  gt::as_raw_html()\n```\n\nFor an overview of the variable names, see the following table.\n\n```{r echo=FALSE, message=FALSE, warning=FALSE}\nreadr::read_csv(\"data-raw/dictionary.csv\") |\u003e\n  dplyr::filter(file_name == \"ploswater.rda\") |\u003e\n  dplyr::select(variable_name:description) |\u003e \n  head(10) |\u003e\n  knitr::kable() |\u003e \n  kableExtra::kable_styling(\"striped\") |\u003e \n  kableExtra::scroll_box(height = \"200px\")\n```\n\n## Example\n\n```{r}\nlibrary(ploswater)\nlibrary(ggplot2)\nlibrary(lubridate)\n\n# Convert publication_date to Date type\nploswater$publication_date \u003c- as.Date(ploswater$publication_date)\n\n# Create year-month column and count publications\nmonthly_counts \u003c- ploswater %\u003e%\n  mutate(publication_month = floor_date(publication_date, \"month\")) %\u003e%\n  count(publication_month) %\u003e%\n  arrange(publication_month)\n\n# Create bar chart\nggplot(monthly_counts, aes(x = publication_month, y = n)) +\n  geom_bar(stat = \"identity\", fill = \"steelblue\") +\n  labs(x = \"\",\n       y = \"Number of Publications\",\n       title = \"Number of Publications per Month\") +\n  theme_minimal() +\n  theme(axis.text.x = element_text(angle = 45, hjust = 1)) +\n  scale_x_date(date_breaks = \"3 month\", \n               date_labels = \"%b %Y\")\n```\n\n```{r}\n# Create citation impact visualization\nggplot(ploswater, aes(x = publication_date, y = cited_by_count)) +\n  geom_point(aes(size = fwci), alpha = 0.6) +\n  scale_size_continuous(name = \"Field-Weighted\\nCitation Impact\") +\n  labs(x = \"Publication Date\",\n       y = \"Number of Citations\",\n       title = \"Citation Impact Over Time\") +\n  theme_minimal()\n```\n\n\n```{r}\nlibrary(gt)\n\n# Compute summary statistics\nsummary_stats \u003c- data.frame(\n  Statistic = c(\n    \"Mean Citations\",\n    \"Median Citations\",\n    \"Mean FWCI\",\n    \"Total Publications\",\n    \"Correlation: Citations \u0026 FWCI\"\n  ),\n  Value = c(\n    mean(ploswater$cited_by_count, na.rm = TRUE),\n    median(ploswater$cited_by_count, na.rm = TRUE),\n    mean(ploswater$fwci, na.rm = TRUE),\n    round(nrow(ploswater), 0),\n    cor(ploswater$cited_by_count, ploswater$fwci, use = \"complete.obs\")\n  )\n)\n\n# Create and print the table using gt\nsummary_stats %\u003e%\n  gt() %\u003e%\n  tab_header(\n    title = \"Summary Statistics\"\n  ) %\u003e%\n  gt::as_raw_html()\n```\n\n\n\n## License\n\nData are available as\n[CC-BY](https://github.com/openwashdata/%7B%7B%7Bpackagename%7D%7D%7D/blob/main/LICENSE.md).\n\n## Citation\n\nPlease cite this package using:\n\n```{r}\ncitation(\"ploswater\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenwashdata%2Fploswater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenwashdata%2Fploswater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenwashdata%2Fploswater/lists"}