neuron2polygon: Transforms a nat neuron object into a polygon that can be...

Description Usage Arguments Value

View source: R/neuron2polygon.R

Description

Transforms a nat neuron object into a polygon that can be plotted in 2D

Usage

1
neuron2polygon(neur, axis = c("x", "y"), progress = TRUE, cl = 10L)

Arguments

neur

A neuron or neuronList object

axis

Which axis do we want to project onto. Has to be a length 2 vector of "x", "y" or "z"

progress

When applied to neuronLists, whether to display a progress bar

cl

A cluster parameter, can be either an integer or a cluster object (see pbapply::pbapply)

Value

a dataframe with columns x, y, proj and bodyid. If neur is a neuronlist there will be several bodyids.


jayaraman-lab/neuprintrExtra documentation built on Dec. 20, 2021, 10 p.m.