kpAddChromosomeSeparators: kpAddChromosomeSeparators

Description Usage Arguments Details Value See Also Examples

View source: R/kpAddChromosomeSeparators.R

Description

Plots between the chromosomes

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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")

 

karyoploteR documentation built on Nov. 8, 2020, 5:52 p.m.