compare_ng_neuron | R Documentation |
Compare a neuroglancer mesh object with a regular neuron
compare_ng_neuron(
x,
n,
breaks = 3,
colpal = c("cyan", "red"),
plot = TRUE,
plotn = plot,
pointsize = 0.1,
sample_dots = 1,
...
)
x |
A neuroglancer mesh, rgl::mesh3d object or other object with a defined xyzmatrix function. |
n |
A nat::neuron object |
breaks |
either a numeric vector of two or more unique cut points or a
single number (greater than or equal to 2) giving the number of
intervals into which |
colpal |
A function defining a colour palette or a vector of colour names. Should |
plot |
Whether to plot anything (set to |
plotn |
Whether to plot the neuron |
pointsize |
Size of plotted points for mesh - passed on to
|
sample_dots |
Fraction of points (0-1) from the mesh to plot - the
default value of 1 implies all points. Values of |
... |
Additional arguments passed to |
Invisibly, a data.frame with the distances of each object in x
to its nearest neighbour in n
as well as the breaks used for
colouring points when plotting.
read_brainmaps_meshes
to read 3D meshes from remote
server, read_segments2
to read skeletons from zip files, and
read.neurons
and read.neurons.catmaid
and
friends to read regular neurons from disk or a CATMAID server.
## Not run:
x=read_ng_raw('meshdata/')
library(elmr)
y=read.neuron.catmaid(23432)
compare_ng_neuron(x,y)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.