On 2015-10-17 22:44:40 +0000, Phil Gee said:

Hi all, 

bored during watching TV I played a little bit around with the shiny dashboard-framework of R and made a small visualization tool of the account balance and the register in R. It is of course a really rough sketch, will be quite buggy, so suggestions and criticism is greatly appreciated. Some aspects of the implementation are rather specified to the way I use Ledger, eg my Account structure is at the max three levels deep. That being said, have fun:

https://github.com/PGiese/LedgeR

This is rather cool! One of the things I have missed since I switched from
TextMate to Vim is an interface to R. I had no time so far to work on it,
so projects like yours are greatly appreciated. Visualizing data gives
lots of insight, and R is extremely powerful (not to mention its potential
for statistical analysis...).

Some feedback:

- You'd better use quantity() get the numbers from Ledger (e.g.,
 '%(quantity(amount))' instead of '%(amount)').

- For income accounts, it would be probably better to swap the signs
 (or just take '%(abs(quantity(amount))').

- It would be nice to support multiple commodities, by adding an option to
 choose a default commodity for the plots and by passing -X to Ledger.

- Many statisticians would frown upon pie charts (and for a reason). They
 are widespread in finance and business, but I'd prefer to have an
 option to see bar charts or dot charts.

- If you have a chance to try the Ledger plugin for TextMate, you may get
 some inspiration for further charts (one thing I liked to draw was a
 heat map of my net worth over time). The source code is here:

     https://github.com/lifepillar/Ledger.tmbundle

 and the R stuff is in Support/lib/r. I used ggplot2 for the plots.

I hope to see more Ledger/R stuff!
Life


--

--- You received this message because you are subscribed to the Google Groups "Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to