{"id":13426642,"url":"https://github.com/juba/scatterD3","last_synced_at":"2025-03-15T21:31:37.719Z","repository":{"id":33474108,"uuid":"37119784","full_name":"juba/scatterD3","owner":"juba","description":"R scatter plot htmlwidget based on D3.js","archived":false,"fork":false,"pushed_at":"2024-08-30T10:53:23.000Z","size":9877,"stargazers_count":160,"open_issues_count":3,"forks_count":22,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-13T09:09:58.366Z","etag":null,"topics":["cran","d3","d3js","htmlwidgets","r","shiny"],"latest_commit_sha":null,"homepage":"https://juba.github.io/scatterD3/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juba.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-09T08:23:20.000Z","updated_at":"2024-09-26T09:25:04.000Z","dependencies_parsed_at":"2024-05-02T07:58:17.674Z","dependency_job_id":"e6262257-48a5-4f66-8f31-bf1a9bdd2813","html_url":"https://github.com/juba/scatterD3","commit_stats":{"total_commits":648,"total_committers":6,"mean_commits":108.0,"dds":0.03240740740740744,"last_synced_commit":"7832e6e564d27885689dbcbfc66b6a48e284c070"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juba%2FscatterD3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juba%2FscatterD3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juba%2FscatterD3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juba%2FscatterD3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juba","download_url":"https://codeload.github.com/juba/scatterD3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243792482,"owners_count":20348653,"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":["cran","d3","d3js","htmlwidgets","r","shiny"],"created_at":"2024-07-31T00:01:39.838Z","updated_at":"2025-03-15T21:31:37.222Z","avatar_url":"https://github.com/juba.png","language":"JavaScript","readme":"# ScatterD3\n\n![CRAN Downloads](https://cranlogs.r-pkg.org/badges/last-month/scatterD3)\n[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version-ago/scatterD3)](https://cran.r-project.org/package=scatterD3)\n[![R build status](https://github.com/juba/scatterD3/workflows/R-CMD-check/badge.svg)](https://github.com/juba/scatterD3/actions?query=workflow%3AR-CMD-check)\n\n`scatterD3` is an HTML R widget for interactive scatter plots visualization.\nIt is based on the [htmlwidgets](https://www.htmlwidgets.org/) R package and on\nthe [d3.js](https://d3js.org/) javascript library.\n\n## Features\n\nHere is a small preview of what you will get :\n\n![example](https://raw.github.com/juba/scatterD3/master/resources/scatterD3.gif)\n\nThe [visual guide](https://juba.github.io/scatterD3/articles/introduction.html) gives a list of features and examples.\n\n## Installation\n\nInstall from CRAN :\n\n```r\ninstall.packages(\"scatterD3\")\n```\n\nOr from Github for the latest development version :\n\n```r\nremotes::install_github(\"juba/scatterD3\")\n```\n\n## Usage\n\nQuick example of the `scatterD3` function based on the `mtcars` dataset :\n\n```r\nmtcars$names \u003c- rownames(mtcars)\nscatterD3(data = mtcars, x = wt, y = mpg, lab = names,\n          col_var = cyl, symbol_var = am,\n          xlab = \"Weight\", ylab = \"Mpg\", col_lab = \"Cylinders\",\n          symbol_lab = \"Manual transmission\")\n```\n\nSee [the visual guide](https://juba.github.io/scatterD3/articles/introduction.html) for a step-by-step guide and details about the different function arguments.\n\n`scatterD3` provides a built-in SVG export of the current widget view. As an [HTML widget](https://www.htmlwidgets.org/), you can also include it in an [Rmarkdown](https://rmarkdown.rstudio.com/) HTML document while keeping its interactive features.\n\n## Shiny integration\n\nLike every R HTML widget, shiny integration is straightforward. But as a D3\nwidget, `scatterD3` is _updatable_ : changes in settings or data can be\ndisplayed via smooth transitions instead of a complete chart redraw, which can\nprovide interesting visual clues.\n\nFurthermore, `scatterD3` provides some additional handlers and callback hooks\nfor a more complete JavaScript interactivity and integration.\n\nYou can [check the sample scatterD3 shiny app](https://github.com/juba/scatterD3_shiny_app)\nand the [visual guide](https://juba.github.io/scatterD3/articles/introduction.html) for\na better understanding of the different arguments.\n\n## Development notes\n\nThis package uses [packer](https://github.com/JohnCoene/packer) to manage JavaScript source code and dependencies. If you want to modify it, you'll need a working installation of [Node.js](https://nodejs.org/en/).\n\nAfter cloning this repository, run the following in a terminal at the project root :\n\n```sh\nnpm install --production=false\n```\n\nThen, if you modify the JavaScript code in `srcjs`, you'll have to run the following command to bundle and update the widget JavaScript code :\n\n```r\npacker::bundle_dev()\n```\n\nIf you want to ship a minimized production version, use :\n\n```r\npacker::bundle_prod()\n```\n\n## Credits\n\nThis package has been made possible by :\n\n-   Mike Bostock's incredible [d3.js](https://d3js.org/) library and documentation\n-   [htmlwidgets](https://www.htmlwidgets.org/) packages\n-   [John Coene](https://twitter.com/jdatap)'s [packer](https://github.com/JohnCoene/packer) package\n-   Susie Lu's [d3-legend](https://github.com/susielu/d3-legend) module\n-   Rob Moore's [article on reusable d3.js charts](https://www.toptal.com/d3-js/towards-reusable-d3-js-charts)\n-   Speros Kokenes' [d3 lasso](https://github.com/skokenes/D3-Lasso-Plugin) plugin\n-   Evan Wang's [d3-labeler](https://github.com/tinker10/D3-Labeler) plugin\n","funding_links":[],"categories":["JavaScript","Interactive plots","HTML Widgets","Tools","Visualization"],"sub_categories":["Miscellaneous","Integrations","Scatterplot"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuba%2FscatterD3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuba%2FscatterD3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuba%2FscatterD3/lists"}