Description Usage Arguments See Also Examples
View source: R/figure_parallel.R
Parallel Chart
1 2 | fig_parallel(rawdata, alpha = 0.8, add.point = FALSE,
legend.size = 8, line.size = 0.5)
|
rawdata |
A data.frame with data in long format, there are four columns: 'id', integer, identify each sample; 'group', character,group of each sample; 'variable', character, the parallel axises; 'value', numeric, values mapped to each axis. |
alpha |
Alpha channel for transparency. |
add.point |
Whether add points to axises or not. |
legend.size |
Size of legend key. |
line.size |
Size of line. |
Other figure: fig_bubble_rect
,
fig_calendar
, fig_event_line
,
fig_event_storm
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(reshape2)
rawdata <- iris
rawdata$id <- 1:nrow(iris)
rawdata <- melt(rawdata, id = c('id','Species'))
names(rawdata) <- c('id', 'group', 'variable', 'value')
fig_parallel(rawdata)
fig_parallel(rawdata, alpha = 0.3, add.point = TRUE)
fig_parallel(rawdata, alpha = 0.3, add.point = TRUE) +
coord_polar()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.