Description Usage Arguments Value Examples
View source: R/parallel_sets.R
This helper function makes it easy to change tidy data into a tidy(er) format that can be used by geom_parallel_sets.
1 | gather_set_data(data, x, id_name = "id")
|
data |
A tidy dataframe with some categorical columns |
x |
The columns to use for axes in the parallel sets diagram |
id_name |
The name of the column that will contain the original index of the row. |
A data.frame
1 2 | data <- reshape2::melt(Titanic)
head(gather_set_data(data, 1:4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.