[BioC] Drawing segments from one plot to another

Steve Lianoglou mailinglist.honeypot at gmail.com
Thu Mar 3 15:53:40 CET 2011


Hi,

On Wed, Mar 2, 2011 at 5:47 PM, Fong Chun Chan
<fongchun at interchange.ubc.ca> wrote:
> Hi all,
>
> I've been using the layout function to plot multiple figures on the same
> graph.  I was curious as to whether it was actually possible a segment from
> one plot to another plot.  They are completely different plots though as
> they are laid out on different sections of the graph.  For example, this
> figure from the Genome Graphs package,
>
> http://www.biomedcentral.com/1471-2105/10/2/figure/F2
>
> The diagonal blue lines are being drawn to connect the expression data to
> the transcript's exons.  Is this even possible to do?

If you're asking if this is possible to do, the answer is (obviously) yes.

Whether or not this is easy is another question.

I know that GenomeGraphs uses the Grid graphics system, ie:

R> library(grid)
R> ?Grid

There' a lot of learning to do, though, if you want to use grid
graphics effectively.

That having been said, if you already have your graph setup and want
to "connect the dots" (so to speak) between different parts, the
`segments` function can draw lines in arbitrary positions on a plot --
not sure if that's what you're after?

-steve
-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the Bioconductor mailing list