[.SingleAnnotation | R Documentation |
Subset an SingleAnnotation Object
## S3 method for class 'SingleAnnotation'
x[i]
x |
An |
i |
A vector of indices. |
The SingleAnnotation class object is subsettable only if the containing AnnotationFunction-class
object is subsettable. All the anno_*
functions are subsettable, so if the SingleAnnotation object
is constructed by one of these functions, it is also subsettable.
ha = SingleAnnotation(value = 1:10)
ha[1:5]
draw(ha[1:5], test = "ha[1:5]")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.