plotSankey: Plot a sankey plot

View source: R/plotSankey.R

plotSankeyR Documentation

Plot a sankey plot

Description

FUNCTION_DESCRIPTION

Usage

plotSankey(
  comparematrix,
  spalte4color,
  gap.width = 0.5,
  colorlines = T,
  alpha = 0.65,
  showblocks = F,
  x_axis_size = 0.1,
  ...
)

Arguments

comparematrix

data.frame or data.table with plotting data, IMPORTANT Restrict data.frame to colums that should be plotted, NAs currently NOT SUPPORTED

spalte4color

column name used for coloring the sankey

gap.width

PARAM_DESCRIPTION, Default: 0.5

colorlines

PARAM_DESCRIPTION, Default: T

alpha

PARAM_DESCRIPTION, Default: 0.65

showblocks

PARAM_DESCRIPTION, Default: F

x_axis_size

PARAM_DESCRIPTION, Default: 0.1

...

PARAM_DESCRIPTION

Details

DETAILS

Value

OUTPUT_DESCRIPTION

See Also

str_sub,str_length alpha

Examples

## Not run: 
if(interactive()){
head(iris)
iris$Petal.Width_categ=cut(iris$Petal.Width, breaks = quantile(iris$Petal.Width,c(0, 0.5,1)), include.lowest=T)
plotSankey(comparematrix = iris[,c('Species','Petal.Width_categ')], spalte4color = 'Species' )
 }

## End(Not run)

holgerman/toolboxH documentation built on June 25, 2022, 2:42 p.m.