{"id":13734476,"url":"https://github.com/daranzolin/d3rain","last_synced_at":"2026-01-17T11:36:32.167Z","repository":{"id":129153520,"uuid":"185124765","full_name":"daranzolin/d3rain","owner":"daranzolin","description":"An htmlwidget bringing D3 drip to R :sweat_drops: :sparkles: :bar_chart:","archived":false,"fork":false,"pushed_at":"2019-07-15T03:59:48.000Z","size":22792,"stargazers_count":79,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-08T10:47:26.057Z","etag":null,"topics":["data-visualization","drip","htmlwidget","rain","rstats"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daranzolin.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-05-06T04:41:23.000Z","updated_at":"2024-11-06T04:18:43.000Z","dependencies_parsed_at":"2023-04-26T14:41:16.843Z","dependency_job_id":null,"html_url":"https://github.com/daranzolin/d3rain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daranzolin/d3rain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daranzolin%2Fd3rain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daranzolin%2Fd3rain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daranzolin%2Fd3rain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daranzolin%2Fd3rain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daranzolin","download_url":"https://codeload.github.com/daranzolin/d3rain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daranzolin%2Fd3rain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28507853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T10:25:30.148Z","status":"ssl_error","status_checked_at":"2026-01-17T10:25:29.718Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["data-visualization","drip","htmlwidget","rain","rstats"],"created_at":"2024-08-03T03:00:56.254Z","updated_at":"2026-01-17T11:36:32.138Z","avatar_url":"https://github.com/daranzolin.png","language":"R","funding_links":[],"categories":["R","UI Components"],"sub_categories":["Animation Effects"],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n## d3rain\n\n[![Travis build status](https://travis-ci.org/daranzolin/d3rain.svg?branch=master)](https://travis-ci.org/daranzolin/d3rain)\n![CRAN log](http://www.r-pkg.org/badges/version/d3rain)\n\nAccording to the authorities at Urban Dictionary, ['drip' is synonymous with 'immense swag.'](https://www.urbandictionary.com/define.php?term=Drip) This package brings some D3 drip to R.\n\n### Installation\n\nYou can install `d3rain` from GitHub via:\n\n``` r\nremotes::install_github(\"daranzolin/d3rain\")\n```\n\n## Examples\n\n'Rain' visualizations are useful aids to observe the relationship between a ranked, numeric variable (e.g. percentile, rank, etc.) and any factored, categorical variable.\n\n```{r eval=FALSE}\nlibrary(d3rain)\nlibrary(dplyr)\n\narmed_levels \u003c- c('No', 'Knife', 'Non-lethal firearm', 'Firearm')\npk \u003c- fivethirtyeight::police_killings %\u003e% \n  filter(armed %in% armed_levels,\n         !is.na(age)) %\u003e% \n  mutate(armed = factor(armed, levels = armed_levels)) \n\npk %\u003e% \n  d3rain(age, armed, toolTip = raceethnicity, title = \"2015 Police Killings by Age, Armed Status\") %\u003e% \n  drip_settings(dripSequence = 'iterate',\n                ease = 'bounce',\n                jitterWidth = 20,\n                dripSpeed = 1000,\n                dripFill = 'firebrick') %\u003e% \n  chart_settings(fontFamily = 'times',\n                 yAxisTickLocation = 'left')\n```\n\n\n![Alt Text](https://raw.githubusercontent.com/daranzolin/d3rain/master/inst/img/d3raingif1.gif)\n\n`drip_settings` adjusts the drip sequence, easing animation, jitter width, drip speed, and color. `chart_settings` controls the axes displays, font size, font family, and background color.\n\nYou can adjust the drip iteration by reordering the data frame:\n\n```{r eval=FALSE}\npk %\u003e% \n  arrange(age) %\u003e% \n  d3rain(age, armed, toolTip = raceethnicity, title = \"2015 Police Killings by Age, Armed Status\") %\u003e% \n  drip_settings(dripSequence = 'iterate',\n                ease = 'linear',\n                jitterWidth = 25,\n                dripSpeed = 500,\n                dripFill = 'steelblue') %\u003e% \n  chart_settings(fontFamily = 'times',\n                 yAxisTickLocation = 'left')\n```\n\n![Alt Text](https://raw.githubusercontent.com/daranzolin/d3rain/master/inst/img/d3raingif2.gif)\n\n## Rain Histograms\n\nCreate rain histograms with `d3rain_hist` and the accompanying functions:\n\n```{r eval = FALSE}\nd \u003c- readr::read_csv(\"https://raw.githubusercontent.com/babeheim/citation-gates/master/citation-data-simulated.csv\") %\u003e% \n  rename(Downloaded = downloaded, \n         Contacted = contacted, \n         Replied = reply_received, \n         Received = data_received) %\u003e% \n  mutate(Total = TRUE,\n         `Downloaded and Received` = case_when(\n           Downloaded ~ TRUE,\n           Received ~ TRUE,\n           TRUE ~ FALSE)\n         ) \n\nd %\u003e% \n  d3rain_hist(x = year, \n              levels = c(\"Total\", \"Contacted\", \"Replied\", \"Downloaded and Received\"), \n              title = \"Citation Statuses, 1960-2019\") %\u003e% \n  hist_chart_settings(annotations = c(\"Total Sample: 560\", \"475 (95%)\", \"309 (65%)\", \"147 (26%)\"),\n                      levelLabelLocation = \"right\") %\u003e% \n  hist_drip_settings(colors = c(\"black\", \"forestgreen\", \"orange\", \"firebrick\"),\n                     transitionIntervals = 2500,\n                     dripSpeed = 300)\n```\n\n\n## Future Work\n\n* Additional drip behaviors (e.g. by group)\n* Conditional fill colors\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaranzolin%2Fd3rain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaranzolin%2Fd3rain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaranzolin%2Fd3rain/lists"}