plot.globalSeg {GeneR}R Documentation

Plot an object of class globalSeg

Description

Draw rectangles on an axis to represent our segments.

Usage

plot.globalSeg(x, xlim = range(x, global = TRUE),
     border = "darkblue", col = "darkblue", density = NULL, at = NULL,
     tick = TRUE, xlabels = TRUE, ...)

Arguments

x

Object of class GlobalSeg

xlim

(optional) vector of two elements:

col

color(s) to fill or shade the rectangle(s) with. The default 'NULL', or also 'NA' do not fill, i.e., draw transparent rectangles, unless 'density' is specified.

border

color for rectangle border(s). Can also be 'FALSE' to suppress the border, or 'TRUE' in which case 'col' is used.

density

the density of shading lines, in lines per inch. The default value of 'NULL' means that no shading lines are drawn. A zero value of 'density' means no shading lines whereas negative values (and 'NA') suppress shading (and so allow color filling).

at

the points at which tick-marks are to be drawn. Non-finite (infinite, 'NaN' or 'NA') values are omitted. By default, when 'NULL', tickmark locations are computed.

tick

a logical value specifying whether tickmarks should be drawn on x axis

xlabels

this can either be a logical value specifying whether (numerical) annotations are to be made at the tickmarks, or a vector of character strings to be placed at the tickpoints.

...

other graphical parameters can be given as arguments.

Details

Interval class is described on page globalSeg

Author(s)

Antoine Lucas

See Also

See also: globalSeg

Examples

a = list(
    matrix( c( 1, 15, 17,  5, 45, 38),ncol=2),
    matrix( c( 100 , 120),ncol=2),
    matrix( c( 130, 135, 140, 145),ncol=2),
    matrix( c( 142 , 160),ncol=2))
a = as.globalSeg(a)
plot(a,at=c(a,recursive=TRUE))


[Package GeneR version 2.24.0 Index]