draw.old.scale: Draw a color scale bar (old version)

Description Usage Arguments Details See Also

Description

draw.old.scale adds a color scale to the corner of the current plot with specified colors and range

Usage

1
2
3
draw.old.scale(scale.colors, scale.range, num.labs = 6,
  position = "topleft", size = 3, width.to.height = 20, x.offset,
  y.offset, x.shift, y.shift, ...)

Arguments

scale.colors

a vector of colors

scale.range

range for scale (vector with 2 numeric elements)

num.labs

(optional) number of labels to draw

position

(optional) either 'topleft' 'topright' 'bottomleft' or 'bottomright'

size

(optional) approximate length in inches

width.to.height

(optional) ratio of scale bar width to height

x.offset

(optional) adjust x position (uses par('usr') scale).

y.offset

(optional) adjust y position (uses par('usr') scale).

x.shift

(optional) adjust x position in units of scale width.

y.shift

(optional) adjust y position in units of scale height.

...

(optional) addition options to pass to plotting commands for drawing labels, lines and shapes

Details

Currently only a horizontal scale bar is supported. To adjust position in plot coordinates use x.offset and y.offset. To adjust relative position use x.shift and y.shift.

Keep in mind that if you shift the scale bar away from the plotting area (i.e. into the margins), you may need to specify the additional parameter xpd=NA which will be passed to the plotting commands and allows drawing in the margins.

See Also

draw.chrom.axis for drawing x-axis


sushilashenoy/zoom.plot documentation built on May 30, 2019, 8:42 p.m.