This function draws a slice of a character vector, with labels and distinct colors for each nucleotide.
draw.seq(slice = NULL, start, end, bty = "o", labelCex = 0.75,
bases = c(A = "#44CC44", C = "#4444CC", G = "#FFCC00", T = "#CC4444"),
maxRange = 500, cex.lab = 1, fg = "#000000", ...)
Character vector, with a single letter per element.
Single integer value, the left boundary of the window, in base pairs.
Single integer value, the right boundary of the window, in base pairs.
A character string which determined the type of box which is drawn about plots. If bty is one of "o" (the default), "l", "7", "c", "u", or "]" the resulting box resembles the corresponding upper case letter. A value of "n" suppresses the box. See par
.
Single numeric value, character expansion factor for labels.
Named character vector, defining the color to use for each nucleotide (names have to be uppercase, slice
is converted to uppercase for matching).
Single integer value, nothing will be ploted if the plot window is wider by this value (in bases).
The relative character size of x and y axis labels (default: 1). See par
.
Single character value, defining the color of the foreground (axes, labels...) as an english name or a hexadecimal code. Similar to par
's argument but not relying on it.
Further arguments to be passed to draw.bg
.
Sylvain Mareschal
track.fasta-class
draw.bg
, draw.boxes
, draw.density
, draw.hist
, draw.pileup
, draw.points
, draw.steps