plotSankey | R Documentation |
FUNCTION_DESCRIPTION
plotSankey( comparematrix, spalte4color, gap.width = 0.5, colorlines = T, alpha = 0.65, showblocks = F, x_axis_size = 0.1, ... )
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
OUTPUT_DESCRIPTION
str_sub
,str_length
alpha
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.