Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit db5401a

Browse files
committed
Xlim correction
1 parent 8c77028 commit db5401a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/ggkaryo.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,10 @@ ggkaryo <- setRefClass("ggkaryo",
331331
stopifnot(is.data.table(.self$data[['bands']]))
332332

333333
if ( .self$opposite ) {
334-
xlim = c(.self$data[['bands']][, min(x)]-.self$chrom_width-.self$chrom_padding/2,
334+
xlim = c(.self$data[['bands']][, min(x)]-.self$chrom_padding/2,
335335
.self$data[['bands']][, max(x)]+.self$chrom_padding/2)
336336
} else {
337-
xlim = c(.self$data[['bands']][, min(x)]-.self$chrom_width,
337+
xlim = c(.self$data[['bands']][, min(x)],
338338
.self$data[['bands']][, max(x)]+.self$chrom_padding)
339339
}
340340

0 commit comments

Comments
 (0)