Need help with scatterD3?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

juba
146 Stars 24 Forks 669 Commits 2 Opened issues

Description

R scatter plot htmlwidget based on D3.js

Services available

!
?

Need anything else?

Contributors list

# 78,881
emacs-l...
R
excel
cran
627 commits
# 64,788
R
HTML
React
htmlwid...
4 commits
# 578,457
R
CSS
htmlwid...
shiny
3 commits
# 428,440
sqlite3
R
Racket
odbc
1 commit

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.
  • The sample shiny app allows to live test the package features and its shiny integration.

Installation

Install from CRAN :

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 :
mtcars$names 

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.

The sample scatterD3 shiny app allows you to see the different features described here. You can check its source code on GitHub 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 :

npm install

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 :
packer::bundle_dev()

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

packer::bundle_prod()

Credits

This package has been made possible by :

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.