Skip to content

Commit 418f5d3

Browse files
committed
Lines connecting regions in plotBedpe now connect only the region in between the boxes. This change is only noticable if the plot is drawn with an opaque color.
1 parent e53e840 commit 418f5d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/plotBedpe.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ function(bedpedata,chrom,chromstart,chromend,heights,
257257
lwd=bedpedata$lwd[i],
258258
border=bedpedata$color[i])
259259

260-
segments(x0 = min(bedpedata[i,2] , bedpedata[i,3],bedpedata[i,5] , bedpedata[i,6]),
261-
x1 = max(bedpedata[i,2] , bedpedata[i,3],bedpedata[i,5] , bedpedata[i,6]),
260+
segments(x0 = max(bedpedata[i,2] , bedpedata[i,3]),
261+
x1 = min(bedpedata[i,5] , bedpedata[i,6]),
262262
y0 = line,
263263
y1 = line,
264264
lwd = bedpedata$lwd[i],

0 commit comments

Comments
 (0)