prune_online: Prune a neuron interactively in an rgl window

Description Usage Arguments Details Value See Also Examples

View source: R/interactive.R

Description

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

Usage

1
2
3
4
5
6
7
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

1
2
3
4
5
## 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. 2, 2021, 10:01 p.m.