roiOutline: Get 2D outlines for a ROI

Description Usage Arguments Details Value

View source: R/rois.R

Description

Get 2D outlines for a ROI

Usage

1
roiOutline(roi, alpha = 100, roiName)

Arguments

roi

Either a mesh3d object (as returned by neuprint_ROI_mesh) or the name of an existing ROI

alpha

Alpha parameter to be passed to the alphahull::ahull function

roiName

A name to label the outline with

Details

both xy and xz projections are returned, which can be selected with the proj column. This is meant to be handy for ggplot2 plotting

Value

a data frame with columns x, y (outlines) proj (either xy or xz, the projection considered) and roi (the roi name)


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