[erlang-questions] Graphing tools

201 views
Skip to first unread message

kilgore trout

unread,
Aug 27, 2012, 8:15:38 AM8/27/12
to erlang-q...@erlang.org
Hello Langers!
I'm looking for a graphing tool, anyone know of any useful libraries?
I have piles of performance data in .csv format and a parser to read it into records. I have been trying to find patterns and draw some meaningful conclusions but it would be so much easier if I could represent it graphically.
A quick google search shows up erlycairo, which I'm about to experiment with, but I see the latest downloadable is from 2009, anyone have any experience with this?
Please save me from having to paste everything into (shudder) MS Excel! ;-)
Thanks in advance.
//KT.

Whit Armstrong

unread,
Aug 27, 2012, 8:23:32 AM8/27/12
to kilgore trout, erlang-q...@erlang.org
http://www.r-project.org/
> _______________________________________________
> erlang-questions mailing list
> erlang-q...@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions
>
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

dmitry kolesnikov

unread,
Aug 27, 2012, 8:45:57 AM8/27/12
to kilgore trout, erlang-q...@erlang.org
Hello,

For Web application Google Visualization API is your friend.

Personally, I have been integrating rrdtools with erlang for same
use-cases (perf data visualization) but it becomes unscalable solution
due to rrd overhead, I've trashed it.

I do have a simple SVG toolkit for SVG rendering on Erlang side
http://github.com/fogfish/svg.git
It might be useful if you are ready to invest into visualization sugar...

Best Regards,
Dmitry >-|-|-*>

Jared Kofron

unread,
Aug 27, 2012, 11:13:54 AM8/27/12
to dmitry kolesnikov, erlang-q...@erlang.org

Gnuplot is great for simple plotting as well.

JK

Richard O'Keefe

unread,
Aug 27, 2012, 6:50:40 PM8/27/12
to kilgore trout, erlang-q...@erlang.org

On 28/08/2012, at 12:15 AM, kilgore trout wrote:

> Hello Langers!
> I'm looking for a graphing tool, anyone know of any useful libraries?
> I have piles of performance data in .csv format and a parser to read it into records. I have been trying to find patterns and draw some meaningful conclusions but it would be so much easier if I could represent it graphically.

You should probably do it in R (http://www.r-project.org).
It's an environment, not a library, but if you want to find
patterns in data, it's hard to go past.

I believe there is an Erlang/R bridge somewhere.

Stu Bailey

unread,
Aug 27, 2012, 7:42:31 PM8/27/12
to erlang-q...@erlang.org
There are several nice javascript data visualization tools here:

http://d3js.org/

It's straight forward to send lots of data from Erlang to Javascript
running in a web browser using:

* BERT (http://bert-rpc.org/)

* BERT-JS (https://github.com/rustyio/BERT-JS)

* Websockets (http://www.websocket.org/)

* Yaws (http://yaws.hyber.org/websockets.yaws)

The nice thing is that on the Erlang side you are just
sending/receiving Erlang terms (i.e no complicated marshaling and
un-marshaling on the Erlang side). So you can do the data
reduction/analysis/computation on the Erlang side and render the data
in some meaningful visual way on the Javascript (web browser) side.

Have fun!
Stu

Richard O'Keefe

unread,
Aug 27, 2012, 8:26:41 PM8/27/12
to Stu Bailey, erlang-q...@erlang.org

On 28/08/2012, at 11:42 AM, Stu Bailey wrote:

> There are several nice javascript data visualization tools here:

The reason that I recommended R is that there is a *vast* amount
of stuff already available free for/in R to do all sorts of data
mining and analysis stuff. There is also an R mailing list that
has some very smart, informed, and helpful people on it, and it
is even more active than the Erlang mailing list. If it is just
about pretty pictures, javascript is cool, but so is rrd.
If it's anything more than that, you need at least something like
Matlab or R or Octave or ...

Just out of curiosity, could the raw data be made available?

dmitry kolesnikov

unread,
Aug 28, 2012, 12:17:58 AM8/28/12
to Richard O'Keefe, erlang-q...@erlang.org
Hello,

No doubt R is super for data analysis. It also includes various data
visualization primitives. It provides you multiple data aggregation
interfaces including csv, MySQL, etc.

My issue with R was a performance for online analysis and
visualization of data. It was a case for handling data from 128
sensors.


Best Regards,
Dmitry >-|-|-*>


Ivan Uemlianin

unread,
Aug 28, 2012, 2:09:05 AM8/28/12
to Richard O'Keefe, erlang-q...@erlang.org
+1 for R. Their visualisation libraries are second to none as well.

Ivan


--
hilaritas excessum habere nequit.

Whit Armstrong

unread,
Aug 28, 2012, 5:48:47 AM8/28/12
to dmitry kolesnikov, erlang-q...@erlang.org
R graphics are slowing imrpoving.

Have a look at the iPlots.

The Simon Urbanek's presentation from R/Fin is not online
(http://www.rinfinance.com/agenda/). I'll post a link it if I can
find a copy.

Here are some other references:

http://www.rosuda.org/iplots/
http://csgillespie.wordpress.com/2011/08/18/simon-urbanek-r-graphics-supercharged/

Also, a lot of people like ggplot2:
http://had.co.nz/ggplot2/

-Whit

André Graf

unread,
Aug 28, 2012, 6:43:21 AM8/28/12
to Whit Armstrong, erlang-q...@erlang.org
R with ggplot2 +1

kilgore trout

unread,
Aug 28, 2012, 4:12:18 PM8/28/12
to Richard O'Keefe, erlang-q...@erlang.org
Hello All,
Thanks for all the replies, it seems there's a lot more options than I first thought.
And there's an Erlang/R bridge! How come I didn't think of looking it up earlier:
https://r-forge.r-project.org/projects/rserlang/
This presents the perfect excuse to polish up my basic R skills!
Richard, that's a "no" on sharing the raw data unfortunately, the powers that be aren't into the sharing / open-source philosophy, at least not yet anyway :-(
//KT.

Daniel Eliasson

unread,
Aug 29, 2012, 4:22:42 AM8/29/12
to kilgore trout, erlang-q...@erlang.org
Hi Kilgore,

You might also be interested in https://github.com/del/erserve which
is a library I wrote to let Erlang call to R. It's being developed
actively, and I'd love to get some users and feedback.

/Daniel
Reply all
Reply to author
Forward
0 new messages