{"id":13425441,"url":"https://github.com/hrbrmstr/streamgraph","last_synced_at":"2025-07-10T12:40:39.726Z","repository":{"id":27212483,"uuid":"30683413","full_name":"hrbrmstr/streamgraph","owner":"hrbrmstr","description":":wavy_dash: htmlwidget for creating streamgraph visualizations in R","archived":false,"fork":false,"pushed_at":"2021-04-15T23:27:58.000Z","size":2265,"stargazers_count":146,"open_issues_count":23,"forks_count":48,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-02T00:41:34.888Z","etag":null,"topics":["data-visualisation","data-visualization","htmlwidgets","r","rstats","streamgraph"],"latest_commit_sha":null,"homepage":"http://hrbrmstr.github.io/streamgraph/","language":"HTML","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/hrbrmstr.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}},"created_at":"2015-02-12T03:24:41.000Z","updated_at":"2025-03-22T11:13:16.000Z","dependencies_parsed_at":"2022-08-19T18:01:55.017Z","dependency_job_id":null,"html_url":"https://github.com/hrbrmstr/streamgraph","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hrbrmstr/streamgraph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fstreamgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fstreamgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fstreamgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fstreamgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrbrmstr","download_url":"https://codeload.github.com/hrbrmstr/streamgraph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fstreamgraph/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264579109,"owners_count":23631562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-visualisation","data-visualization","htmlwidgets","r","rstats","streamgraph"],"created_at":"2024-07-31T00:01:12.456Z","updated_at":"2025-07-10T12:40:39.709Z","avatar_url":"https://github.com/hrbrmstr.png","language":"HTML","readme":"---\ntitle: \"streamgraph\"\noutput:\n  html_document:\n    keep_md: true\n  md_document:\n    variant: markdown_github\n---\n\nstreamgraph is an htmlwidget for making, well, _streamgraphs_. \n\n![example](example.png)\n\n[Sample Rmd](http://rpubs.com/hrbrmstr/59200)\n\nA streamgraph (or \"stream graph\") is a type of stacked area graph \nwhich is displaced around a central axis, resulting in a flowing, \norganic shape. Streamgraphs were developed by Lee Byron and popularized \nby their use in a February 2008 New York Times article on movie\nbox office revenues. ([Wikipedia](http://en.wikipedia.org/wiki/Streamgraph))\n\nThe x axis values can be continous or dates.\n\n### TODO\n\n- Support is planned for `xts` objects, but not for a bit.\n- Support for categorical/discrete x axis\n\nThe following functions are implemented:\n\n- `streamgraph`\t: Create a new streamgraph\n- `sg_axis_x`\t: Modify streamgraph x axis formatting\n- `sg_axis_y`\t: Modify streamgraph y axis formatting\n- `sg_colors`\t: Modify streamgraph axis text, legend popup label text and tooltip text colors (NOTE: no longer modifies fill colors, use `sg_fill_*` for fill colors)\n- `sg_legend` : Add select menu \"legend\" to interactive streamgraphs  \n- `sg_fill_brewer` : Specify a ColorBrewer palette to use for the stream fills\n- `sg_fill_manual` : Specify a manual color palette to use for the stream fills\n- `sg_fill_tableau` : Specify a Tableau color palette to use for the stream flls\n- `sg_add_marker` : Annotate streamgraph with vertical line and label\n- `sg_annotate` : Annotate streamgraph with a label\n\n### News\n\n- Version `0.8.1` released - ggplot2 movies fix; corrected numerous notes from CRAN check\n- Version `0.8` released - support for negative Y axis numbers and upgrade to latest D3\n- Version `0.7.5` released - `key`, `value` and `date` can be either bare or quoted\n- Version `0.7` released - New `sg_add_marker` and `sg_annotation` to enable annotation of streamgraphs\n- Version `0.6` released - New `scale` parameter to `streamgraph` lets you choose between continuous or date scales. \n- Version `0.5.1` released - `sg_colors` now has nothing to do with the stream fills but _does_ set the axis text, legend popup label text and tooltip text.\n- Version `0.5` released - deprecated use of `sg_colors`. Its functionality will change soon and is replaced by three `sg_fill_*` functions (`brewer`, `manual` and `tableau`) which makes more sense, is aligned to the `ggplot2` way of specifying fill aesthetics and now makes it easier to highly customize the streamgraph appearance.\n- Versioin `0.4.2` released - fixed bug (thanks to teammate @bhaskarvk) that causes inconsistent color rendering for each area component (noticeable on resize of flexible width/height graphs)\n- Version `0.4.1` released - removed warning message when supplying `POSIXct` values (remember, `POSIXct` still only works for granularities \u003e= 1 day)\n- Version `0.4` released - select menu \"legend\" (interactive only)\n- Version `0.3.1` released - bug fix to fix error with `d3.stack`; `streamgraph` will now see if the date input is a year and automatically convert it to the necessary format (no need to use `as.Date`)\n- Version `0.3` released - folks can have some fun with new `offset` and `interpolate` parameters to `streamgraph`\n- Version `0.2.2` relased - rly rly rly fixed tooltips now, also assed ability to format y axis text\n- Version `0.2.1` released - ok, working tool tips for realz now\n- Version `0.2` released - working SVG tooltips; general code cleanup\n- Version `0.1` released\n\n### Installation\n\n```{r eval=FALSE}\ndevtools::install_github(\"hrbrmstr/streamgraph\")\n```\n\n```{r echo=FALSE, message=FALSE, warning=FALSE, error=FALSE}\noptions(width=120)\n```\n\n### Usage\n\n```{r eval=FALSE}\nlibrary(streamgraph)\n\n# current verison\npackageVersion(\"streamgraph\")\n\nlibrary(dplyr)\n\nggplot2movies::movies %\u003e%\n  select(year, Action, Animation, Comedy, Drama, Documentary, Romance, Short) %\u003e%\n  tidyr::gather(genre, value, -year) %\u003e%\n  group_by(year, genre) %\u003e%\n  tally(wt=value) -\u003e dat\n\nstreamgraph(dat, \"genre\", \"n\", \"year\", interactive=TRUE) %\u003e%\n  sg_axis_x(20, \"year\", \"%Y\") %\u003e%\n  sg_fill_brewer(\"PuOr\")\n\n```\n\n---------------\n\nPlease note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.","funding_links":[],"categories":["HTML","Visualization"],"sub_categories":["Time Series"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Fstreamgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrbrmstr%2Fstreamgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Fstreamgraph/lists"}