[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-657209-105":59,"doc-detail-657209-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","alluvial-create-alluvial-diagrams-parallel-sets-plots","Alluvial - Create alluvial diagrams (parallel sets plots)","","Alluvial provides functions to draw alluvial diagrams, also known as parallel set plots, for multivariate data and to visualize flows across multiple cross-sectional time series. It supports customization of stripe colors, border colors, transparency, gap widths, control-point geometry, and rendering order, with options for ribbon or block styles. A planned API change for dplyr compatibility is noted, while examples demonstrate 2D–4D use and customized axis ordering.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/alluvial-create-alluvial-diagrams-parallel-sets-plots/657209/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/alluvial-create-alluvial-diagrams-parallel-sets-plots/657209.png","ImageObject",300,407,{"name":92,"@type":93},"Terk","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-29","2026-10-26",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What kind of data can alluvial diagrams visualize?","Question",{"text":112,"@type":113},"The alluvial function visualizes multivariate data where inputs represent the same number of observations. The alluvial_ts variant is designed for multiple cross-sectional time series data with category, time-variable, and value columns.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How can I control the appearance of stripes or polygons?",{"text":117,"@type":113},"You can set colors via col, border colors via border, and transparency via alpha. Additional layout controls include gap.width, xw (distance to control points), and cw (category axis width), plus font scaling through cex and cex.axis.",{"name":119,"@type":110,"acceptedAnswer":120},"How does alluvial_ts differ from alluvial?",{"text":121,"@type":113},"alluvial_ts is a variant tailored to multiple time series, stacking polygon stacks aligned vertically using plotdir (up, down, or centred). It introduces time-related parameters like wave for curve waviness and ygap for vertical spacing between polygons.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},657209,1793060010,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":34,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":144},1099525198933,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Package ‘alluvial’  \nMay 7, 2026  \nType Package  \nTitle Alluvial Diagrams Version 0.1-2  \nDate 2016-09-09  \nDescription Creating alluvial diagrams (also known as parallel sets plots) for multivariate and time series-like data.  \nURL [https://github.com/mbojan/alluvial](https://github.com/mbojan/alluvial)  \nBugReports [https://github.com/mbojan/alluvial/issues](https://github.com/mbojan/alluvial/issues)[ ](https://github.com/mbojan/alluvial/issues)Suggests devtools, testthat, reshape2, knitr, rmarkdown, dplyr License MIT + file LICENSE  \nLazyLoad yes  \nLazyData yes VignetteBuilder knitr RoxygenNote 5.0.1 NeedsCompilation no  \nAuthor Michal Bojanowski [aut, cre],  \nRobin Edwards [aut]  \nMaintainer Michal Bojanowski \u003C[michal2992@gmail.com](michal2992@gmail.com)> Repository CRAN  \nDate/Publication 2016-09-09 13:08:51  \nContents  \nalluvial ........................................... 2  \nalluvial_ts .......................................... 4  \nRefugees .......................................... 6  \nIndex 7  \n2 alluvial  \n\n| alluvial | Alluvial diagram |\n| --- | --- |\n\nDescription  \nDrawing alluvial diagrams, also known as parallel set plots.  \nUsage  \nalluvial(   , freq, col = \"gray\", border = 0, layer, hide = FALSE,  \nalpha = 0.5, gap.width = 0.05, xw = 0.1, cw = 0.1, blocks = TRUE,  \nordering = NULL, axis_labels = NULL, cex = par(\"cex\"),  \ncex.axis = par(\"cex.axis\"))  \nArguments  \n... vectors or data frames, all for the same number of observations  \nfreq numeric, vector of frequencies of the same length as the number of observations  \ncol vector of colors of the stripes  \nborder vector of border colors for the stripes  \nlayer numeric, order of drawing of the stripes  \nhide logical, should particular stripe be plotted  \nalpha numeric, vector of transparency of the stripes  \ngap.width numeric, relative width of inter-category gaps  \nxw numeric, the distance from the set axis to the control points of the xspline  \ncw numeric, width of the category axis  \nblocks logical, whether to use blocks to tie the flows together at each category, versus  \ncontiguous ribbons (also admits character value \"bookends\")  \nordering list of numeric vectors allowing to reorder the alluvia on each axis separately,  \nsee Examples  \naxis_labels character, labels of the axes, defaults to variable names in the data  \ncex, cex .axis numeric, scaling of fonts of category labels and axis labels respectively. See par.  \nValue  \nInvisibly a list with elements:  \nendpoints A list of matrices of y-coordinates of endpoints of the alluvia. x-coordinates are consecutive natural numbers.  \nNote  \nPlease mind that the API is planned to change to be more compatible with dplyr verbs.  \nalluvial 3  \nExamples  \n\\# Titanic data  \ntit \u003C-[as.data.frame](as.data.frame) (Titanic)  \n\\# 2d  \ntit2d \u003C -aggregate( Freq ~ Class + Survived, data=tit, sum)  \nalluvial( tit2d[,1:2], freq=tit2d$Freq, xw=0.0, alpha=0.8,  \ngap.width=0.1, col= \"steelblue\", border=\"white\",  \nlayer = tit2d$Survived != \"Yes\" )  \nalluvial( tit2d[,1:2], freq=tit2d$Freq,  \nhide=tit2d$Freq \u003C 150,  \nxw=0.0, alpha=0.8,  \ngap.width=0.1, col= \"steelblue\", border=\"white\",  \nlayer = tit2d$Survived != \"Yes\" )  \n\\# 3d  \ntit3d \u003C -aggregate( Freq ~ Class + Sex + Survived, data=tit, sum)  \nalluvial(tit3d[,1:3], freq=tit3d$Freq, alpha=1, xw=0.2,  \ncol=ifelse( tit3d$Survived == \"No\", \"red\", \"gray\"),  \nlayer = tit3d$Sex != \"Female\",  \nborder=\"white\")  \n\\# 4d  \nalluvial( tit[,1:4], freq=tit$Freq, border=NA,  \nhide = tit$Freq \u003C quantile(tit$Freq, .50),  \ncol=ifelse( tit$Class == \"3rd\" & tit$Sex == \"Male\", \"red\", \"gray\") )  \n\\# 3d example with custom ordering  \n\\# Reorder \"Sex\" axis according to survival status  \nord \u003C - list(NULL, with(tit3d, order(Sex, Survived)), NULL)  \nalluvial(tit3d[,1:3], freq=tit3d$Freq, alpha=1, xw=0.2,  \ncol=ifelse( tit3d$Survived == \"No\", \"red\", \"gray\"),  \nlayer = tit3d$Sex != \"Female\",  \nborder=\"white\", ordering=ord)  \n\\# Possible blocks options  \nfor (blocks in c(TRUE, FALSE, \"bookends\")) {  \n\\# Elabor","cbCaigvtuMIMWxm0","https://ap.wps.com/l/cbCaigvtuMIMWxm0","pdf",88074,"English","# alluvial\n## Usage and arguments\n## Value\n# alluvial_ts\n## Usage and arguments","[{\"question\":\"What kind of data can alluvial diagrams visualize?\",\"answer\":\"The alluvial function visualizes multivariate data where inputs represent the same number of observations. The alluvial_ts variant is designed for multiple cross-sectional time series data with category, time-variable, and value columns.\"},{\"question\":\"How can I control the appearance of stripes or polygons?\",\"answer\":\"You can set colors via col, border colors via border, and transparency via alpha. Additional layout controls include gap.width, xw (distance to control points), and cw (category axis width), plus font scaling through cex and cex.axis.\"},{\"question\":\"How does alluvial_ts differ from alluvial?\",\"answer\":\"alluvial_ts is a variant tailored to multiple time series, stacking polygon stacks aligned vertically using plotdir (up, down, or centred). It introduces time-related parameters like wave for curve waviness and ygap for vertical spacing between polygons.\"}]","Alluvial - Create alluvial diagrams (parallel sets plots) | PDF",1792975792,18]