https://github.com/heike/ggparallel
R package for creating hammock plots and parallel sets plots using the ggplot2 framework.
https://github.com/heike/ggparallel
Last synced: 3 months ago
JSON representation
R package for creating hammock plots and parallel sets plots using the ggplot2 framework.
- Host: GitHub
- URL: https://github.com/heike/ggparallel
- Owner: heike
- License: other
- Created: 2012-07-02T20:39:58.000Z (almost 13 years ago)
- Default Branch: main
- Last Pushed: 2024-03-09T20:10:27.000Z (over 1 year ago)
- Last Synced: 2025-03-09T01:30:02.774Z (4 months ago)
- Language: R
- Homepage: https://heike.github.io/ggparallel/
- Size: 13.5 MB
- Stars: 41
- Watchers: 3
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS
- License: LICENSE
Awesome Lists containing this project
- awesome-ggplot2 - GitHub
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# ggparallel
[](https://CRAN.R-project.org/package=ggparallel)
[](https://r-pkg.org/pkg/ggparallel)
[)`-yellowgreen.svg)](https://github.com/heike/ggparallel/commits/main)
[](https://codecov.io/gh/heike/ggparallel)
[](https://github.com/heike/ggparallel/actions/workflows/R-CMD-check.yaml)The R package `ggparallel` implements and combines different types of parallel coordinate plots for categorical data: [hammock plots](http://www.schonlau.net/publication/03jsm_hammockplot_old.pdf), [parallel sets plots](https://datavizcatalogue.com/methods/parallel_sets.html), and [common angle plots](https://ieeexplore.ieee.org/document/6634157), as well as common angle plots with a hammock-like adjustment for line widths.
## Installation
The package is available on CRAN:
```
install.packages("ggparallel")
```You can install the development version of ggparallel from [GitHub](https://github.com/) with:
```
# install.packages("remotes")
remotes::install_github("heike/ggparallel")
```## Basic use case
```{r}
library(ggparallel)
data(mtcars)ggparallel(list("gear", "cyl"), data=mtcars)
``````{r}
ggparallel(list("gear", "cyl"), data=mtcars, method="hammock", ratio=0.25)
```