plotAssignmentX: Plot assignment lines

Description Usage Arguments Author(s) See Also Examples

View source: R/plotAssignment.R

Description

Plot lines or polygons mapping between regions on the x axis.

Usage

1
plotAssignmentX(x.left.bottom, x.right.bottom, x.left.top, x.right.top, ybottom, ytop, col = rgb(0.9, 0.9, 0.9), border = "grey", assign.style = "polygon", vert.length = abs(diff(c(ybottom, ytop)))/10)

Arguments

x.left.bottom

The bottom left coordinates of the regions.

x.right.bottom

The bottom right coordinates of the regions.

x.left.top

The top left coordinates of the regions.

x.right.top

The top right coordinates of the regions.

ybottom

The position of the bottom regions on the y-axis.

ytop

The position of the upper/top regions on the y-axis.

col

The color (background color for assign.style=polygon)

border

The border color.

assign.style

The style of assignments. One of line (drawing lines) or polygon (plot assignment using polygons).

vert.length

A factor specifying how long the vertical part of the polygons should be.

Author(s)

Johannes Rainer

See Also

plotFeatures

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
b.l <- c( 1, 2, 3, 4 )
b.r <- c( 2, 3, 4, 5 )
t.l <- c( 2, 5, 6, 8 )
t.r <- c( 4, 5.5, 7, 10 )
plot( 3, 3, pch=NA, xlim=c( 0, 12 ), ylim=c( 0, 5 ) )
rect( xleft=b.l, xright=b.r, ybottom=0.5, ytop=1 )
rect( xleft=t.l, xright=t.r, ybottom=4, ytop=4.5 )
plotAssignmentX( x.left.b=b.l, x.right.b=b.r, x.left.t=t.l, x.right.t=t.r, ybottom=1, ytop=4, assign.style="line" )
plotAssignmentX( x.left.b=b.l, x.right.b=b.r, x.left.t=t.l, x.right.t=t.r, ybottom=1, ytop=4 )

plotAssignmentX( x.left.b=b.l, x.right.b=b.r, x.left.t=t.l, x.right.t=t.r, ybottom=1, ytop=4, col=c( "lightgrey", "green", "red", "lightgrey" ) )

jotsetung/GenomePlotR documentation built on May 19, 2019, 9:41 p.m.