Dear all,
Firstly, thank you to the Gviz team for releasing a great visualisation tool.
My problem is that I wish to reduce the whitespace around tracks. For example, in the attached plot I use chromHmm data from roadmap epigenomics for four cell types and these four tracks are separated by a buffer of whitespace. I was wondering if there was an option to reduce this space so the four tracks would be abutted.
Thanks in advance for any suggestions.
John
Hi Florian,
Thanks for taking the time to reply to my post. Adding this parameter didn't seem to make any difference, could this be because the cell data tracks are four separate annotation tracks? Do all the stacked elements need to be in the same track for this parameter to influence the plot?
Best wishes,
John.
Hm, do these annotation tracks contain strand information? I guess what is happening is that Gviz tries to plot them using the standard "arrow" shape, but because there is not enough space for arrow heads they are omitted. Try setting type="box" in addition to stackHeight=1 That should effectively remove all white space between the tracks.
Florian
Hi Florian,
Thanks again for your time. But unfortunately this didn't apear to work. The code I am using to generate the annotation tracks is:
Where the epi object is:
Thanks
John
Sorry, my bad. The parameter is called 'shape', not 'type'.
That will do the trick.
Perfect, thanks for all your help Florian.
Best wishes
John
I have the same problem, I have several different Annotation Tracks and I want less whitespace between these tracks. I have tried tried using shape ="box" in the displayPars of each anotationTrack.