Usage
plotRanges(ranged, labels = NULL, do.labs = T, skip.plot.new = F, lty = "solid", alt.y = NULL, v.lines = FALSE, ylim = NULL, xlim = NULL, scl = c("b", "Kb", "Mb", "Gb"), col = NULL, srt = 0, pos = 4, pch = 1, lwd = 1, cex = 1, ...)
Arguments
ranged
GRanges or RangedData object with genomic ranges. Should only contain
one chromosome, but if not, the first will be used
labels
by default labels for each range are taken from the rownames of 'ranged',
but if you want to use another column in the ranged object, specify the column name
or number to use to label these ranges on the plot. Or else input a character
vector the same length as ranged for custom labels.
do.labs
logical, whether or not to display these labels
skip.plot.new
logical, whether to append to an existing plot (TRUE), or start
a new plot (FALSE --> default)
lty
line type to use, see '?lines()' - not used for SNP data when v.lines=FALSE
alt.y
alternative y-axis values (other than the default ordering from the input)
This can be a vector of length 1 or length(ranged), or else a column name in ranged to
take the values from
v.lines
TRUE will plot the ranges as pairs of vertical lines, occupying the full
vertical extent of the plot, whereas FALSE will plot the ranges as individual horizontal lines
ylim
numeric, length 2, the y-axis limits for the plot, same a 'ylim' for ?plot()
xlim
numeric, length 2, the x-axis limits for the plot, same a 'xlim' for ?plot(),
This shouldn't usually be needed as the automatic x-limits should work well,
however is here in case fine tuning is required.
scl
character, the scale that the x axis uses, ie, 'b','kb','mb', or 'gb', meaning
base-pairs, kilobases, megabases or gigabase-pairs.
col
character, colour, same as 'col' argument for plot(), etc.
srt
integer, text rotation in degrees (see par) for labels
pos
integer, values of '1', '2', '3' and '4', respectively indicate positions below,
to the left of, above and to the right of the specified coordinates. See 'pos' in graphics:text()
pch
point type, see '?points()' - not used for ranged data
lwd
line width, see '?lines()' - not used for SNP data when v.lines=FALSE
cex
font/symbol size, see '?plot()' - passed to plot, points if using SNP data
...
further arguments to 'plot', so long as skip.plot.new==FALSE.