[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-657162-105":59,"doc-detail-657162-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","pantarhei-version-012-sankey-diagrams-package-manual","PantaRhei - Version 0.1.2 - Sankey Diagrams Package Manual","","PantaRhei is an R package for creating publication-quality Sankey diagrams that visualize flow balances in systems. It supports data tables (nodes, flows, and palette) and provides functions for checking node mass balance and overall consistency. The package includes parsers for flows, nodes, and palette definitions, plus the main sankey plotting function with options for styling, legends, margins, and output control. It also ships sample material-flow-account data (MFA).",{"@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/pantarhei-version-012-sankey-diagrams-package-manual/657162/",{"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/pantarhei-version-012-sankey-diagrams-package-manual/657162.png","ImageObject",300,407,{"name":92,"@type":93},"Hazel","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-29","2026-10-26",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What does check_balance verify in PantaRhei?","Question",{"text":112,"@type":113},"It checks the mass balance of flows for each internal node by comparing outflow and inflow. If the balance is outside the specified tolerance, it prints a message and returns FALSE.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How is check_consistency used?",{"text":117,"@type":113},"It validates that the nodes, flows, and (optionally) palette data frames are mutually consistent. It returns TRUE only when all defined checks pass, otherwise FALSE.",{"name":119,"@type":110,"acceptedAnswer":120},"What does the sankey function do and what are its key inputs?",{"text":121,"@type":113},"It plots a Sankey diagram using nodes, flows, and a palette definition. You can also configure node styling, title, legend display, margins, width constraints, and other rendering options via its arguments.","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},657162,1793006073,{"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":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":44,"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},137441390410,"https://ap-avatar.wpscdn.com/avatar/2000252f4ab5702993?_k=1776741390130283984","Package ‘PantaRhei’  \nMay 7, 2026  \nTitle Plots Sankey Diagrams Version 0.1.2  \nDescription Sankey diagrams are a powerfull and visually attractive way to visualize the flow of conservative substances through a system. They typically consists of a network of nodes, and fluxes between them, where the total balance in each internal node is 0, i.e. input equals output.  \nSankey diagrams are typically used to display energy systems, material flow accounts etc.  \nUnlike so-called alluvial plots, Sankey diagrams also allow for cyclic flows:  \nflows originating from a single node can, either direct or indirect, contribute to the input of that same node.  \nThis package, named after the Greek aphorism Panta Rhei (everything flows),  \nprovides functions to create publication-quality diagrams, using data in tables (or spread sheets) and a simple syntax.  \nDepends R (>= 3.5.0) License EUPL Encoding UTF-8 LazyData true RoxygenNote 7.1.1  \nImports grid, grDevices, utils Suggests knitr, rmarkdown, tibble VignetteBuilder knitr NeedsCompilation no  \nAuthor Patrick Bogaart [aut, cre](ORCID:  \n\u003C[https://orcid.org/0000-0002-8612-1289](https://orcid.org/0000-0002-8612-1289)>) Maintainer Patrick Bogaart \u003C[pwbogaart@gmail.com](pwbogaart@gmail.com)> Repository CRAN  \nDate/Publication 2020-12-18 10:20:05 UTC  \nContents  \ncheck_balance   2  \n2 check_balance  \ncheck_consistency ..................................... 3  \nMFA ............................................. 3  \nPantaRhei .......................................... 4  \nparse_flows ......................................... 4  \nparse_nodes ......................................... 5  \nparse_palette ........................................ 5  \nsankey ............................................ 6  \nstrformat ........................................... 8  \nIndex 9  \n\n| check_balance | Checks the mass balance of the flows involved |\n| --- | --- |\n\nDescription  \nFor each substance involved, the balance per (internal) node is inspected. If outflow exceed inflow, or vice versa, a message is printed, and the function returns FALSE.  \nUsage  \ncheck_balance(nodes, flows, tolerance = 0.01)  \nArguments  \nnodes data.frame containing the nodes definition  \nflows data.frame containing the flows definition  \ntolerance numeric specifying a tolerance. Default is 0.01 (1%)  \nValue  \nTRUE if balanced, FALSE if not.  \nExamples  \nnodes \u003C -data.frame(ID=c(\"A\",\"B\",\"C\"), x=1:3, y=1:3, dir=c(\"right\",\"right\",\"stock\")) flows \u003C -data.frame(from=c(\"A\",\"B\"), to=c(\"B\",\"C\"), quantity=c(10,10))  \ncheck_balance(nodes,flows)  \ncheck_consistency 3  \n\n| check_consistency | Check the consistence of the nodes, flows and palette data.frames |\n| --- | --- |\n\nDescription  \nCheck the consistence of the nodes, flows and palette data.frames  \nUsage  \ncheck_consistency(nodes, flows, palette = NULL)  \nArguments  \nnodes data.frame containing the nodes definition  \nflows data.frame containing the flows definition  \npalette data.frame containing the palette definition  \nValue  \nTRUE if all checks are passed; FALSE otherwise.  \nExamples  \nnodes \u003C -data.frame(ID=c(\"A\",\"B\"), x=1:2, y=0)  \nflows \u003C -data.frame(from=\"A\", to=\"B\", quantity=10)  \ncheck_consistency(nodes, flows)  \n\n| MFA | Material Flow Account sample data |\n| --- | --- |\n\nDescription  \nDataset containing sample material flow account data, formatted for use within ’PantaRhei’  \nUsage  \nMFA  \nFormat  \nA list with three data frames:  \n• nodes  \n• flows  \n• colors  \n4 parse_flows  \nPantaRhei PantaRhei: Publication-quality Sankey diagrams  \nDescription  \nPlease read the user manual for more information.  \n\n| parse_flows | Parse the information from a ’flows’ definition table. |\n| --- | --- |\n\nDescription  \nThis function checks the content of a flows definition, and appends some missing columns. It is mainly used internally, but can be invoked by the uses to see what it does.  \nUsage  \nparse_flows(flows, verbose = FALSE)  \nArguments  \nflows data.frame containing the nodes definition  \nverbose ","cbCaivnXfBR0eul2","https://ap.wps.com/l/cbCaivnXfBR0eul2","pdf",103883,"English","# check_balance\n# check_consistency\n# MFA\n# parse_flows\n# parse_nodes\n# parse_palette\n# sankey\n# strformat\n# Index","[{\"question\":\"What does check_balance verify in PantaRhei?\",\"answer\":\"It checks the mass balance of flows for each internal node by comparing outflow and inflow. If the balance is outside the specified tolerance, it prints a message and returns FALSE.\"},{\"question\":\"How is check_consistency used?\",\"answer\":\"It validates that the nodes, flows, and (optionally) palette data frames are mutually consistent. It returns TRUE only when all defined checks pass, otherwise FALSE.\"},{\"question\":\"What does the sankey function do and what are its key inputs?\",\"answer\":\"It plots a Sankey diagram using nodes, flows, and a palette definition. You can also configure node styling, title, legend display, margins, width constraints, and other rendering options via its arguments.\"}]","PantaRhei - Version 0.1.2 - Sankey Diagrams Package Manual | PDF",1792974960,23]