ggalluvial | ggplot2 extension for alluvial plots | Data Visualization library

 by   corybrunson R Version: v0.12.2 License: GPL-3.0

kandi X-RAY | ggalluvial Summary

kandi X-RAY | ggalluvial Summary

ggalluvial is a R library typically used in Analytics, Data Visualization applications. ggalluvial has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

This is a ggplot2 extension for alluvial plots.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ggalluvial has a low active ecosystem.
              It has 439 star(s) with 29 fork(s). There are 11 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 19 open issues and 87 have been closed. On average issues are closed in 45 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of ggalluvial is v0.12.2

            kandi-Quality Quality

              ggalluvial has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              ggalluvial is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              ggalluvial releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 8979 lines of code, 0 functions and 41 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            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 ggalluvial
            Get all kandi verified functions for this library.

            ggalluvial Key Features

            No Key Features are available at this moment for ggalluvial.

            ggalluvial Examples and Code Snippets

            No Code Snippets are available at this moment for ggalluvial.

            Community Discussions

            QUESTION

            Making an alluvial/sankey diagram using the first axis as the fill
            Asked 2022-Mar-29 at 12:32

            I have this data:

            https://docs.google.com/spreadsheets/d/18sTSOzVEmSEI2KGfGSvRT_0BbzQ9n87kCGZH-cSULCs/edit?usp=sharing (put below the code to produce it)

            I use this code:

            ...

            ANSWER

            Answered 2022-Mar-29 at 12:04

            You need to specify the fill color according to the first axis variable. The labels are going to be difficult to place in view of their size and the limited space of some of the nodes, but something like this might work for you:

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

            QUESTION

            knitr::include_graphics() doesn't render figure with `bookdown`
            Asked 2022-Mar-28 at 17:25

            I'm trying to write up a report and simply want to include a .jpeg image in my write up. However, whenever i knit together my document, I get the following error:

            ...

            ANSWER

            Answered 2022-Mar-28 at 17:25

            I had the same issue and it seems you will need to pass the absolute path. See this .

            Instead of using here maybe try using normalizePath in include_graphics.

            So omit your call here(), which may not be propagating across chunks (I don't know, because I can't see your chunks), and do:

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

            QUESTION

            Add title above axis geom_alluvium
            Asked 2022-Mar-22 at 16:11

            How to add a title above axis1 and axis2 in geom_alluvium?

            Similar to

            Current code:

            ...

            ANSWER

            Answered 2022-Mar-22 at 16:11

            You could add a plain old geom_label:

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

            QUESTION

            `ggalluvial`: `geom_flow` fill color from destination stratum
            Asked 2022-Feb-18 at 14:41

            I have the following example:

            ...

            ANSWER

            Answered 2022-Feb-18 at 14:41

            Are you looking for aes.flow = "backward"?

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

            QUESTION

            Issue with preparing dataset for use with ggalluvial and creating alluvial diagram
            Asked 2022-Jan-30 at 13:59

            I am new to using the ggalluvial package. I presently am working with a dataset of donations that I would like to represent using an alluvial diagram as a medium. Below is a sample of the dataset that I am working with:

            ...

            ANSWER

            Answered 2022-Jan-30 at 13:59

            Currently the errors thrown by the plot layers are less informative than those thrown by the alluvial structure tests themselves. The tests also use different terms: id for alluvium, key for x, and value for stratum. (I apologize for that! These will be changed in a future release.) Your data are trying to be in lodes (long) form, and the is_lodes_form() test (below) says that there are duplicate id–axis pairings.

            I didn't notice earlier, but there is indeed at least one duplicative pairing: There are two rows with donor_ID = 1 and month_year = September 2019. Alluvial plots require that each alluvium (id) pass through each axis at most once. After removing this one and another, an alluvial plot does render (below). Presumably because this is only a sample of the data, the plot is sparse.

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

            QUESTION

            Sankey diagram in time
            Asked 2022-Jan-06 at 23:14

            I'd like to draw a Sankey diagram based on the variable time. Basically, I'd like to have time on the y axis and temperatures and humidity grouped by date on the x axis. As you can see, the time is not displayed correctly. Why? Also, how can I change the size of the humidity column to fit in the box?

            Sample code:

            ...

            ANSWER

            Answered 2022-Jan-06 at 23:14

            From what I understand of the y-axis mentioned, you are trying to achive something like this (this is how far I got)... maybe check out other libraries:

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

            QUESTION

            Adding label data to sankey plot axis with ggalluvial Package
            Asked 2022-Jan-03 at 00:56

            How do I add label names in the white boxes to each of the three axis on the ggalluvial sankey plot from the dataframe? (see image)

            Column "Country" has observations for multiple countries. In the example below I am focused on Ireland which has the label "IE". How do I harvest the dataframe for the Country name using the ggplot code below? I will also be doing this task for the "Vaccine" and the "TargetGroup" names so if the solution can include these columns too, I would be grateful. Thank you

            Dataframe code and sankey colours - data is from the EU ECDC

            ...

            ANSWER

            Answered 2022-Jan-03 at 00:56

            Figured it out - full code chunk here. I hope this helps someone out

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

            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

            Labeling small strata in alluvial plot - different variables on columns/axis
            Asked 2021-Nov-01 at 14:56

            I am getting problems with applying ggrepel() in an alluvial plot with different variables on columns. Some observations are so small, I need ggrepel to make them readable.

            Because there are three columns, I want to apply different ggrepel() functions to each column: Left (region): Align lables to the left of axis Middle (supplySector): Do nothing (i.e. leave text in axis) Right (demandSector): Align to right of axis.

            I've found these issues:

            https://cran.r-project.org/web/packages/ggalluvial/vignettes/labels.html

            and

            How to align and label the stratum in ggalluvial using ggrepel (or otherwise)

            Difference is: these examples only have 2 columns, and also columns made of the same variable (but subset of the variable). Previous published fixes are through an ifelse(), selecting a subset within the variable.

            ReprEx:

            ...

            ANSWER

            Answered 2021-Nov-01 at 14:56

            Maybe I got you wrong. But after a closer look at your example I would call it a duplicate to my answer you linked in your post.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install ggalluvial

            The latest stable release can be installed from CRAN:. The cran branch will contain the version most recently submitted to CRAN. It is duplicated in the master branch, from which source the website is built.

            Support

            For detailed discussion of the data formats recognized by ggalluvial and several examples that illustrate its flexibility and limitations, read the technical vignette:.
            Find more information at:

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

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link