jianhong / trackViewer

A bioconductor package with minimalist design for drawing elegant tracks or lollipop plot
https://jianhong.github.io/trackViewer/
66 stars 16 forks source link

Split lolliplot and allow multi-plot #10

Closed wigge206 closed 3 years ago

wigge206 commented 4 years ago

For regions of significant detail if might be useful to split tracks across multiple rows, effectively stacking plot. This can be done manually by limiting the ranges in lolliplot export to PDF and stitching together. Are there methods built in that I am missing that can do this.

jianhong commented 4 years ago

Did you tried to set the xscale for the lolliplot as https://www.bioconductor.org/packages/release/bioc/vignettes/trackViewer/inst/doc/trackViewer.html#Change_the_scale_of_the_x-axis_(xscale)?

wigge206 commented 4 years ago

xscale is not quite what I am after, although it is a useful feature which I will implement. Below is an example of desired output, it is a continuous plot but split into 3 x ~20,000bp plots. I have used the range option of lolliplot() and then had to stack the three plots manually.

variantClass

jianhong commented 4 years ago

This is a cool idea. I will try to add this into trackViewer.

Jianhong.

On Mon, Sep 28, 2020 at 5:35 PM wigge206 notifications@github.com wrote:

xscale is not quite what I am after, although it is a useful feature which I will implement. Below is an example of desired output, it is a continuous plot but split into 3 x ~20,000bp plots. I have used the range option of lolliplot() and then had to stack the three plots manually.

[image: variantClass] https://user-images.githubusercontent.com/7672246/94488337-ec436600-023e-11eb-8f3d-982a664170f8.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jianhong/trackViewer/issues/10#issuecomment-700293748, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLBEA3SLSJHG3JPVCLQ7S3SID6RVANCNFSM4ROHSJPA .

-- Yours sincerely, Jianhong Ou