From osklyar at ebi.ac.uk  Thu Feb 19 23:16:47 2009
From: osklyar at ebi.ac.uk (Oleg Sklyar)
Date: Thu, 19 Feb 2009 22:16:47 +0000
Subject: [Rd] Interactive Graphics in R [Was: Google Summer of Code 2009]
In-Reply-To: <f8e6ff050902191336j4b3cc99ds97ddc08c6820d914@mail.gmail.com>
References: <18844.37238.384954.744812@ridcully.stat.uni-muenchen.de>	<1A68FCB28DE72F4BA3B967E6506CCE43047DF6A4@mildnpexmb01.maninvestments.ad.man.com>	<89b6b8c90902190820p54ddb6a0w69003fdddfe73d4b@mail.gmail.com>	<7794A7C8-4261-4CF7-8FBA-9C6777961ED2@r-project.org>
	<f8e6ff050902191336j4b3cc99ds97ddc08c6820d914@mail.gmail.com>
Message-ID: <499DDA4F.4060306@ebi.ac.uk>

Simon,

as promised I attach a simple package that utilises gtkdatabox. It is
Linux only, sorry for that: as it was hacked together in the last two
hours I did not have time for Windows stuff.

Under my Ubuntu I only had to install libgtkdatabox-dev from standard
repos (which would pull libgtk2-dev where necessary). The package relies
on gtkdatabox being found under the standard pkg-config path (i.e.
custom path installs would be difficult until compiler flags are
manually changed). This is for simplicity of ./configure

After installing, simply run example(databox) and use your mouse for
zooming-in with quite a standard left mouse click for drawing a
selection box (a click is required within a selection to zoom in); right
mouse click zooms out. I think it is CTRL-right or SHIFT-right to zoom
out to full scale.

This is a kind of functionality I would like to see. I do not mean the
gtkdatabox, but the idea.

With this one it is quite easy to add more plots to the window and as
the user has control over callbacks it is easy to do autorescale on
multiple plots if required. The limitation is the ruler of the
gtkdatabox itself (no time), no NA treatment, implementation via
increases pix buffer on zoom (rather than off-screen) etc.

I do not know if r-devel will allow a tar.gz source through, but if
anybody else is interested, please let me know and I will send the
source directly.

Best,
Oleg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: databox_0.0.1.tar.gz
Type: application/x-gzip
Size: 24621 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20090219/bc5611b8/attachment.gz>


[Rd] Interactive Graphics in R [Was: Google Summer of Code 2009]
Oleg Sklyar