scatterD3

R scatter plot htmlwidget based on D3.js

https://github.com/juba/scatterd3

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.5%) to scientific vocabulary

Keywords

cran d3 d3js htmlwidgets r shiny

Keywords from Contributors

interactive serializer packaging charts network-simulation shellcodes hacking autograding observability genomics
Last synced: 6 months ago · JSON representation

Repository

R scatter plot htmlwidget based on D3.js

Basic Info
Statistics
  • Stars: 161
  • Watchers: 10
  • Forks: 22
  • Open Issues: 3
  • Releases: 0
Topics
cran d3 d3js htmlwidgets r shiny
Created over 10 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog

README.md

ScatterD3

CRAN Downloads CRAN_Status_Badge R build status

scatterD3 is an HTML R widget for interactive scatter plots visualization. It is based on the htmlwidgets R package and on the d3.js javascript library.

Features

Here is a small preview of what you will get :

example

The visual guide gives a list of features and examples.

Installation

Install from CRAN :

r install.packages("scatterD3")

Or from Github for the latest development version :

r remotes::install_github("juba/scatterD3")

Usage

Quick example of the scatterD3 function based on the mtcars dataset :

r mtcars$names <- rownames(mtcars) scatterD3(data = mtcars, x = wt, y = mpg, lab = names, col_var = cyl, symbol_var = am, xlab = "Weight", ylab = "Mpg", col_lab = "Cylinders", symbol_lab = "Manual transmission")

See the visual guide for a step-by-step guide and details about the different function arguments.

scatterD3 provides a built-in SVG export of the current widget view. As an HTML widget, you can also include it in an Rmarkdown HTML document while keeping its interactive features.

Shiny integration

Like every R HTML widget, shiny integration is straightforward. But as a D3 widget, scatterD3 is updatable : changes in settings or data can be displayed via smooth transitions instead of a complete chart redraw, which can provide interesting visual clues.

Furthermore, scatterD3 provides some additional handlers and callback hooks for a more complete JavaScript interactivity and integration.

You can check the sample scatterD3 shiny app and the visual guide for a better understanding of the different arguments.

Development notes

This package uses packer to manage JavaScript source code and dependencies. If you want to modify it, you'll need a working installation of Node.js.

After cloning this repository, run the following in a terminal at the project root :

sh npm install --production=false

Then, if you modify the JavaScript code in srcjs, you'll have to run the following command to bundle and update the widget JavaScript code :

r packer::bundle_dev()

If you want to ship a minimized production version, use :

r packer::bundle_prod()

Credits

This package has been made possible by :

Owner

  • Name: Julien Barnier
  • Login: juba
  • Kind: user
  • Location: Villeurbanne, France

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 650
  • Total Committers: 5
  • Avg Commits per committer: 130.0
  • Development Distribution Score (DDS): 0.022
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Julien Barnier j****n@n****g 636
dependabot[bot] 4****] 6
timelyportfolio k****l@t****m 4
Fong Chun Chan f****n@g****m 3
detule o****i@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 87
  • Total pull requests: 11
  • Average time to close issues: 2 months
  • Average time to close pull requests: 13 days
  • Total issue authors: 39
  • Total pull request authors: 5
  • Average comments per issue: 2.99
  • Average comments per pull request: 0.45
  • Merged pull requests: 10
  • Bot issues: 0
  • Bot pull requests: 6
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 4 minutes
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 1
Top Authors
Issue Authors
  • juba (17)
  • Tixierae (7)
  • GiuseppeDiGuglielmo (5)
  • romanhaa (5)
  • tinyheero (5)
  • TimBock (3)
  • joelgombin (3)
  • sharvarinarendra (2)
  • zhitkovk (2)
  • ScottStetkiewicz (2)
  • neuro30 (2)
  • 1rdsk1 (2)
  • nFrechen (2)
  • zji90 (2)
  • Nicolabo (2)
Pull Request Authors
  • dependabot[bot] (7)
  • juba (2)
  • tinyheero (1)
  • timelyportfolio (1)
  • harveyl888 (1)
Top Labels
Issue Labels
enhancement (15) bug (10) question (3) wontfix (1)
Pull Request Labels
dependencies (7)

Packages

  • Total packages: 2
  • Total downloads:
    • cran 706 last-month
  • Total docker downloads: 54,102
  • Total dependent packages: 3
    (may contain duplicates)
  • Total dependent repositories: 9
    (may contain duplicates)
  • Total versions: 20
  • Total maintainers: 1
cran.r-project.org: scatterD3

D3 JavaScript Scatterplot from R

  • Versions: 16
  • Dependent Packages: 3
  • Dependent Repositories: 9
  • Downloads: 706 Last month
  • Docker Downloads: 54,102
Rankings
Stargazers count: 2.7%
Forks count: 3.2%
Average: 7.4%
Dependent repos count: 9.9%
Dependent packages count: 10.6%
Downloads: 10.7%
Maintainers (1)
Last synced: 6 months ago
conda-forge.org: r-scatterd3
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Stargazers count: 26.3%
Forks count: 30.8%
Dependent repos count: 34.0%
Average: 35.6%
Dependent packages count: 51.2%
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • shiny * enhances
  • digest * imports
  • ellipse * imports
  • htmlwidgets * imports
  • knitr * suggests
  • rmarkdown * suggests
package-lock.json npm
  • 181 dependencies
package.json npm
  • css-loader ^6.2.0 development
  • style-loader ^3.2.1 development
  • webpack ^5.48.0 development
  • webpack-cli ^4.7.2 development
  • webpack-merge ^5.8.0 development
  • d3 ^7.1.1
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • actions/upload-artifact main composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite