prune_twigs | R Documentation |
prune_twigs
will prune twigs less than a certain path length from a neuron
prune_twigs(x, ...)
## S3 method for class 'neuron'
prune_twigs(x, twig_length, ...)
## S3 method for class 'neuronlist'
prune_twigs(x, twig_length, OmitFailures = NA, ...)
x |
A |
... |
Additional arguments passed to |
twig_length |
Twigs shorter than this will be pruned |
OmitFailures |
Whether to omit neurons for which |
Gregory Jefferis jefferis@gmail.com
# Prune twigs up to 5 microns long
pt5=prune_twigs(Cell07PNs[1:3], twig_length = 5)
# compare original (coloured) and pruned (black) neurons
plot(Cell07PNs[1:3], WithNodes=FALSE, lwd=2, xlim=c(240,300), ylim=c(120, 90))
plot(pt5, WithNodes=FALSE, add=TRUE, lwd=2, col='black')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.