title: ggplot sankey diagram of income to expenses (ggsankey)
body: <p>I am trying to make an income to expenses sankey diagram, preferably with <code>ggsankey</code> or another ggplot extension, because I need the final plot as an image (png). Here is my data:</p>
  <pre><code>data &lt;- tibble::tribble(
                   ~Name, ~Annual.Amount,  ~Category,
      &quot;Moira's Earnings&quot;,         50000L,   &quot;Income&quot;,
     &quot;Johnny's Earnings&quot;,        300000L,   &quot;Income&quot;,
       &quot;Living Expenses&quot;,        140000L, &quot;Expenses&quot;,
         &quot;Spent Savings&quot;,         25238L, &quot;Expenses&quot;,
           &quot;Liabilities&quot;,         44280L, &quot;Expenses&quot;,
       &quot;Planned Savings&quot;,         23000L, &quot;Expenses&quot;,
                 &quot;Taxes&quot;,         98482L, &quot;Expenses&quot;,
             &quot;Insurance&quot;,         13000L, &quot;Expenses&quot;
    )
  </code></pre>
  <p>I am trying to create something like this diagram, but with only the first 2 flows, all income into one column from where the expenses flow: <a href="https://i.stack.imgur.com/acBTq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/acBTq.png" alt="enter image description here" /></a></p>