Description Usage Arguments Details See Also
draw.old.scale
adds a color scale to the corner of the current plot
with specified colors and range
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, ...)
|
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 |
y.offset |
(optional) adjust y position (uses |
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 |
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.
draw.chrom.axis
for drawing x-axis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.