knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The R package ggparallel
implements and combines different types of parallel coordinate plots for categorical data: hammock plots, parallel sets plots, and common angle plots, as well as common angle plots with a hammock-like adjustment for line widths.
The package is available on CRAN:
install.packages("ggparallel")
You can install the development version of ggparallel from GitHub with:
# install.packages("remotes") remotes::install_github("heike/ggparallel")
library(ggparallel) data(mtcars) ggparallel(list("gear", "cyl"), data=mtcars)
ggparallel(list("gear", "cyl"), data=mtcars, method="hammock", ratio=0.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.