Gviz plot dimensions
0
0
Entering edit mode
Murat Tasan ▴ 10
@murat-tasan-5347
Last seen 10.2 years ago
hi all -- i've been using the Gviz package for plotting annotation tracks, and i've recently run into issues where the device i set up for plotting is too small (along the height dimension) for the eventual plot, thus causing errors. the quick fix is to make the device height much larger in anticipation of tall tracks being plotted, but when the tracks are not tall (or missing, in some cases), Gviz defaults to try to fill the device, leading to vertically stretched out tracks that look rather unsightly. does anyone know of any existing tricks to pre-compute the minimum dimension size(s) required for a plotTracks() call? what i'm thinking of is something similar in spirit to calling the hist() function with the "plot = FALSE" option set, where the values needed to set up ones own plot dimensions are returned, and then the final plot can be executed. (i.e. something like a dry run at a plot.) in the end, what i'm really looking for is a way to automatically estimate the size of the device, such that the features of the plot (e.g. the ideogram track, or the axis track) are always the same vertical size, and the rest of the device is re-sized to handle the amount of data in the annotation/genome/data tracks. cheers! -murat
ideogram Gviz ideogram Gviz • 1.8k views
ADD COMMENT

Login before adding your answer.

Traffic: 732 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6