kpAddChromosomeSeparators {karyoploteR} | R Documentation

## kpAddChromosomeSeparators

### Description

Plots between the chromosomes

### Usage

    kpAddChromosomeSeparators(karyoplot, col="gray", lty=3, data.panel="all", ...)

### Arguments

`karyoplot` | a `karyoplot` object returned by a call to `plotKaryotype`
`col` | (color) The color of the separator lines (defaults to "gray")
`lty` | (integer) The line type of the separators (defaults to 3, dashed lines)
`data.panel` | (data panel specification) For vertical lines, the span of the separator lines. Ignored for horizontal lines. (defaults to "all")
`...` | any additional parameter to be passed to the text plotting. All R base graphics params are passed along.

### Details

Depending on the plot type it will draw vertical lines (if all chromosomes are in a one line (3,4,5,7)) or horizontal lines (1,2,6)

By default the lines will occupy the whole chromsome extent (data.panel="all") but using the `data.panel` parameter it can be tuned.

### Value

invisibly returns the given karyoplot object

### See Also

`plotKaryotype`

### Examples

    kp <- plotKaryotype(plot.type=4)
    kpAddChromosomeSeparators(kp)

    kp <- plotKaryotype(plot.type=5, ideogram.plotter=NULL)
    kpAddChromosomeSeparators(kp)

    kp <- plotKaryotype(plot.type=2)
    kpAddChromosomeSeparators(kp, col="red")

[Package karyoploteR version 1.10.5 Index]