drawSimpleChrom: Draw chromosome-like icons

Description Usage Arguments Value Author(s) Examples

View source: R/quantsmoothplot.R

Description

This function paints chromosomal icons on an existing plot

Usage

1
drawSimpleChrom(x, y, len = 3, width = 1, fill, col, orientation = c("h", "v"), centromere.size = 0.6)

Arguments

x

start x-position

y

start y-position

len

total length of the chromosome

width

width of the chromosome

fill

character, {"a","p","q","q[1-3]","p[1-3]" }. Events to a chromosome can be depicted by coloring "a"ll of the chromosome, the complete p or q-arm, or a subsegment of the arms

col

color(s) of fill

orientation

either "h"orizontal or "v"ertical

centromere.size

The size of the centromere as fraction of the width

Value

This function is executed for its side effects

Author(s)

Jan Oosting

Examples

1
2
  plot(c(0,4),c(0,3),type="n",xaxt="n",yaxt="n",xlab="",ylab="")
  drawSimpleChrom(2,3,fill=c("p","q3"),col=c("red","blue"),orientation="v")

Example output

Loading required package: quantreg
Loading required package: SparseM

Attaching package: 'SparseM'

The following object is masked from 'package:base':

    backsolve

Loading required package: grid

quantsmooth documentation built on Nov. 8, 2020, 8:27 p.m.