ggsankey | Make sankey , alluvial and sankey bump plots in ggplot | Data Visualization library

 by   davidsjoberg R Version: Current License: Non-SPDX

kandi X-RAY | ggsankey Summary

kandi X-RAY | ggsankey Summary

ggsankey is a R library typically used in Analytics, Data Visualization applications. ggsankey has no bugs, it has no vulnerabilities and it has low support. However ggsankey has a Non-SPDX License. You can download it from GitHub.

The goal of ggsankey is to make beautiful sankey, alluvial and sankey bump plots in ggplot2.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ggsankey has a low active ecosystem.
              It has 168 star(s) with 19 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 26 open issues and 6 have been closed. On average issues are closed in 0 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ggsankey is current.

            kandi-Quality Quality

              ggsankey has 0 bugs and 0 code smells.

            kandi-Security Security

              ggsankey has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ggsankey code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ggsankey has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              ggsankey releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ggsankey
            Get all kandi verified functions for this library.

            ggsankey Key Features

            No Key Features are available at this moment for ggsankey.

            ggsankey Examples and Code Snippets

            No Code Snippets are available at this moment for ggsankey.

            Community Discussions

            QUESTION

            Sankey Diagram: is there a way to color the flows according to an extra column in ggsankey?
            Asked 2021-Dec-16 at 09:23

            I am making a Sankey diagram with ggalluvial.

            Here is my dataset

            ...

            ANSWER

            Answered 2021-Dec-11 at 18:29

            In the end, ggaluvial seems more adapted to my problem:

            Here is the data formating:

            Source https://stackoverflow.com/questions/70278591

            QUESTION

            Alluvial plot with 2 different sources but a converging/shared variable [R]
            Asked 2021-Dec-10 at 17:58

            I have experience with making alluvial plots using the ggalluvial package. However, I have run in to an issue where I am trying to create an alluvial plot with two different sources that converge onto 1 variable.

            here is example data

            ...

            ANSWER

            Answered 2021-Dec-10 at 17:58

            This plot is the expected result of the "flow" statistical transformation, which is the default for the "flow" graphical object. (That is, geom_flow() = geom_flow(stat = "flow").) It looks like what you want is to specify the "alluvium" statistical transformation instead. Below i've used all your code but only copied and edited the ggplot() call.

            Source https://stackoverflow.com/questions/70283357

            QUESTION

            ggplot sankey diagram of income to expenses (ggsankey)
            Asked 2021-Oct-30 at 21:50

            I am trying to make an income to expenses sankey diagram, preferably with ggsankey or another ggplot extension, because I need the final plot as an image (png). Here is my data:

            ...

            ANSWER

            Answered 2021-Oct-30 at 21:50
            library(tidyverse)
            library(networkD3)
            
            data <- tibble::tribble(
              ~Name, ~Annual.Amount,  ~Category,
              "Moira's Earnings",         50000L,   "Income",
              "Johnny's Earnings",        300000L,   "Income",
              "Living Expenses",        140000L, "Expenses",
              "Spent Savings",         25238L, "Expenses",
              "Liabilities",         44280L, "Expenses",
              "Planned Savings",         23000L, "Expenses",
              "Taxes",         98482L, "Expenses",
              "Insurance",         13000L, "Expenses"
            )
            
            Nodes = tibble(
              Name = c(data$Name, "Budget") %>% unique()
            ) %>% as.data.frame()
            
            
            df = data %>% filter(Category=="Income") %>%
              select(-Category) %>%
              rename(Source = Name) %>%
              mutate(Target = "Budget") %>%
              bind_rows(
                data %>%
                  filter(Category=="Expenses") %>%
                  select(-Category) %>%
                  rename(Target = Name) %>%
                  mutate(Source = "Budget")
              ) %>% mutate(
              IDSource = match(Source, Nodes$Name)-1,
              IDTarget = match(Target, Nodes$Name)-1
            ) %>% as.data.frame()
            
            sankeyNetwork(Links = df, Nodes = Nodes,
                          Source = "IDSource", Target = "IDTarget",
                          Value = "Annual.Amount", NodeID = "Name",
                          sinksRight=FALSE, fontSize = 16)
            

            Source https://stackoverflow.com/questions/69780665

            QUESTION

            Sankey Diagram labels in R
            Asked 2021-Apr-20 at 17:12

            Background

            I am creating a Sankey Diagram in R and I am struggling with labeling the nodes.

            As example, I will reuse a dataset with 10 imaginary patients that are screened for COVID-19. At baseline, all patients are negative for COVID-19. After let’s say 1 week, all patients are tested again: now, 3 patients are positive, 6 are negative and 1 has an inconclusive result. Yet another week later, the 3 positive patients remain positive, 1 patient goes from negative to positive, and the others are negative.

            ...

            ANSWER

            Answered 2021-Apr-20 at 17:12

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ggsankey

            You can install the development version of ggsankey from github with:.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/davidsjoberg/ggsankey.git

          • CLI

            gh repo clone davidsjoberg/ggsankey

          • sshUrl

            git@github.com:davidsjoberg/ggsankey.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link