Description Usage Arguments Author(s) See Also Examples
View source: R/plotAssignment.R
Plot lines or polygons mapping between regions on the x axis.
1 |
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 |
border |
The border color. |
assign.style |
The style of assignments. One of |
vert.length |
A factor specifying how long the vertical part of the polygons should be. |
Johannes Rainer
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" ) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.