scatterD3 v0.9.2

0

Monthly downloads

0th

Percentile

D3 JavaScript Scatterplot from R

Creates 'D3' 'JavaScript' scatterplots from 'R' with interactive features : panning, zooming, tooltips, etc.

Readme

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.

CRAN Downloads CRAN_Status_Badge R build status

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 latest stable release from CRAN :

install.packages("scatterD3")

Or from Github for the latest, bleeding edge, full of bugs version :

devtools::install_github("juba/scatterD3")

Usage

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

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.

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.

Credits

This package has been made possible by :

Functions in scatterD3

Name Description
scatterD3 Scatter plot HTML widget
scatterD3-shiny Shiny bindings for scatterD3 widgets
No Results!

Vignettes of scatterD3

Name
introduction.Rmd
No Results!

Last month downloads

Details

Type Package
Date 2020-12-01
License GPL (>= 3)
VignetteBuilder knitr
Encoding UTF-8
URL https://juba.github.io/scatterD3/
BugReports https://github.com/juba/scatterD3/issues
LazyData TRUE
RoxygenNote 7.1.1
NeedsCompilation no
Packaged 2020-12-01 13:03:30 UTC; julien
Repository CRAN
Date/Publication 2020-12-01 13:30:03 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/scatterD3)](http://www.rdocumentation.org/packages/scatterD3)