### Install ggsankeyfier from CRAN Source: https://github.com/pepijn-devries/ggsankeyfier/blob/master/README.md Installs the stable version of the ggsankeyfier package directly from the Comprehensive R Archive Network (CRAN). This is the recommended method for most users. ```r install.packages("ggsankeyfier") ``` -------------------------------- ### Install ggsankeyfier Development Version from GitHub Source: https://github.com/pepijn-devries/ggsankeyfier/blob/master/README.md Installs the latest development version of the ggsankeyfier package from its GitHub repository. This is useful for accessing the newest features or bug fixes before they are released on CRAN. ```r devtools::install_github('pepijn-devries/ggsankeyfier') ``` -------------------------------- ### Create Sankey Diagram with ggplot2 Source: https://github.com/pepijn-devries/ggsankeyfier/blob/master/README.md This snippet shows the basic usage of ggsankeyfier to create a Sankey diagram. It involves initializing a ggplot object, specifying aesthetics like 'x', 'y', 'group', 'connector', and 'edge_id', and then adding Sankey edge and node layers. ```R data("ecosystem_services") ggplot(ecosystem_services_pivot1, aes(x = stage, y = RCSES, group = node, connector = connector, edge_id = edge_id)) + geom_sankeyedge(v_space = "auto") + geom_sankeynode(v_space = "auto") ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.