annotate | R Documentation |
Create a list of vectors of indices/names of intervals/points in annotation
(if annotation
is a two-column matrix/vector respectively) which intersect with each interval/point in x
(if x
is a two-column matrix/vector respectively).
annotate(x, annotation)
x |
Integer matrix of two columns, the first column giving the (inclusive) start points of intervals and the second column giving the corresponding (exclusive) end points, or, an integer vector specifying the location of points. |
annotation |
Matrix specifying intervals or vector specifying points with which to annotate |
List of vectors of indices of overlapping intervals/points.
annotate(rbind(A=c(1, 100), B=c(50, 100)), rbind(a=c(1, 2), b=c(49, 51), c=c(50, 200)))
annotate(rbind(A=c(1, 100), B=c(50, 100)), c(a=1, b=49, c=51, d=100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.