Learn R Programming

parallelPlot

'parallelPlot' is:

  • an interactive parallel coordinates plot (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('parallelPlot')

# Or GitLab version
if (!require('devtools')) install.packages('devtools')
devtools::install_gitlab(host = 'https://gitlab.com', repo = 'drti/parallelPlot', subdir = 'htmlwidget')

Example

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

See also Shiny testing app: https://detocs.shinyapps.io/ParallelPlot-Testing-App/ whose source code is available in test\testingApp\Shiny-ParallelPlotTest.R

Copy Link

Version

Install

install.packages('parallelPlot')

Monthly Downloads

199

Version

0.4.0

License

MIT + file LICENSE

Maintainer

David Chazalviel

Last Published

June 17th, 2024

Functions in parallelPlot (0.4.0)

setRefColumnDim

Line coloring
setCategoricalColorScale

Lines colors
setHistoVisibility

Histograms visibility
setCutoffs

Cutoffs values
setContinuousColorScale

Lines colors
parallelPlot

htmlwidget for d3.js parallel coordinate plot
parallelPlot-shiny

Shiny bindings for parallelPlot
setArrangeMethod

Lines position
highlightRow

Row highlight
changeRow

Row edition
getValue

Plot attributes
setCategoriesRep

Categories Representation
getPlotConfig

Retrieve plot configuration
setKeptColumns

Column visibility
setInvertedAxes

Axis orientation