View source: R/ng-annotations.R
ngl_annotations | R Documentation |
Extract annotations from a neuroglancer scene into a dataframe
ngl_annotations(
x,
layer = NULL,
types = c("point", "line"),
points = c("collapse", "expand", "list")
)
x |
A neuroglancer scene or URL (passed to
|
layer |
Optional index vector specifying the layers within a scene from which to extract annotations. It is probably safest to use a character vector of layer names (what appears in neuroglancer). When missing all annotation layers are processed. |
types |
Which annotation types to process (currently only points and lines by default) |
points |
What to do with point coordinates. |
A data.frame with columns defined by the contents of the annotation
layer and the types
/points
arguments. Additional annotation
features are stored as attributes on the data.frame.
ngl_annotation_layers
to make new annotation layers
u="https://ngl.flywire.ai/?json_url=https://globalv1.flywire-daf.com/nglstate/5963849085747200"
adf=ngl_annotations(u)
str(attr(adf, 'ann_attrs'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.