fig_parallel: Parallel Chart

Description Usage Arguments See Also Examples

View source: R/figure_parallel.R

Description

Parallel Chart

Usage

1
2
fig_parallel(rawdata, alpha = 0.8, add.point = FALSE,
  legend.size = 8, line.size = 0.5)

Arguments

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.

See Also

Other figure: fig_bubble_rect, fig_calendar, fig_event_line, fig_event_storm

Examples

 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()

purplezippo/ggpkt documentation built on May 21, 2019, 10:34 a.m.