This code:
alTrack <- Gviz::AlignmentsTrack( system.file(package = "Gviz", "extdata", "gapped.bam"), isPaired = TRUE) Gviz::plotTracks( alTrack, from = 3048500, to = 3049000, chromosome = "chr12")
Produces this plot:
How can I avoid the not-used whitespace at the bottom of the plot, below the reads? Regardless of the device height I set, there's always empty whitespace below the reads.
The specific region I don't want to appear:
Edit with answer:
Florian to the rescue again! The max.height parameter did it. Updated code with result:
alTrack <- Gviz::AlignmentsTrack( system.file(package = "Gviz", "extdata", "gapped.bam"), isPaired = TRUE) Gviz::displayPars(alTrack) <- list( min.height = 25 ) Gviz::plotTracks( alTrack, from = 3048500, to = 3049000, chromosome = "chr12")
Thank you. I must have had some other error, because I just confirmed that setting the displaypar max.height to 30 made the whitespace go away. Sorry!