Learn R Programming

scatterPlotMatrix

'scatterPlotMatrix' is:

  • an interactive scatter plot matrix (thanks to the d3.js);
  • an HTML widget for R that render in various contexts including the R console, 'R Markdown' documents, and 'Shiny' web applications (thanks to the htmlwidgets package);
  • a Shiny widget that can be updated programmatically and whose some actions can trigger reactions.

As an example, a Shiny application is available on shinyapps.io.

Installation

You can install this package from CRAN, or the development version from GitLab:

# CRAN version
install.packages('scatterPlotMatrix')

# Or GitLab version
if (!require('devtools')) install.packages('devtools')
devtools::install_gitlab(host = 'ifpen-gitlab.appcollaboratif.fr', repo = 'detocs/scatterplotmatrix', subdir = 'htmlwidget/spm')

Examples

library(scatterPlotMatrix)
categorical <- list(cyl = c(4, 6, 8), vs = c(0, 1), am = c(0, 1), gear = 3:5, carb = 1:8)
scatterPlotMatrix(mtcars, categorical = categorical, zAxisDim = "cyl")

See also Shiny testing app: https://detocs.shinyapps.io/scatterPlotMatrix-testing-app/ whose source code is available in test/testingApp/Shiny-ScatterPlotMatrix-ParallelPlot-CsvFile.R

Copy Link

Version

Install

install.packages('scatterPlotMatrix')

Monthly Downloads

251

Version

0.3.0

License

MIT + file LICENSE

Maintainer

David Chazalviel

Last Published

June 17th, 2024

Functions in scatterPlotMatrix (0.3.0)

setDistribType

Distribution plots
setKeptColumns

Column visibility
setContinuousColorScale

Continuous color scale
setCorrPlotCS

Color scale for correlation plots
setCutoffs

Cutoffs values
setCorrPlotType

Correlation plot type
changeMouseMode

Set mouse interaction type
setRegressionType

Regression plots
setZAxis

Z axis
highlightPoint

Row highlight
scatterPlotMatrix-shiny

Shiny bindings for scatterPlotMatrix
getPlotConfig

Retrieve plot configuration
scatterPlotMatrix

htmlwidget for d3.js scatter plot matrix
setCategoricalColorScale

Categorical color scale