prune_online: Prune a neuron interactively in an rgl window

View source: R/interactive.R

prune_onlineR Documentation

Prune a neuron interactively in an rgl window

Description

Remove points from a neuron, keeping the root node intact.

Usage

prune_online(x, ...)

## S3 method for class 'neuron'
prune_online(x, ...)

## S3 method for class 'neuronlist'
prune_online(x, ...)

Arguments

x

The object to prune. (e.g. dotprops object, see details)

...

Additional methods passed to prune_vertices

Details

The neuron is plotted initially with all nodes selected (and shown with black points). You can interactively select points to remove (they will now be plotted in red). You can also add points back again (they will return to black). When you are finished, press [e] to exit and then indicate that you have finished (yes).

Value

A pruned neuron/neuronlist object

See Also

as.neuron.ngraph, subset.neuron, prune.neuron

Examples

## Not run: 
## Interactively choose which bit of the neuron you wish to keep
pruned.as.you.like.it = prune_online(Cell07PNs[1:2])

## End(Not run)

jefferis/nat documentation built on Feb. 22, 2024, 12:45 p.m.