write.vtk: Write object to VTK file

Description Usage Arguments Examples

View source: R/vtk-io.R

Description

Write object to VTK file

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
write.vtk(x, file, ...)

## S3 method for class 'neuron'
write.vtk(
  x,
  file,
  datatype = c("float", "double"),
  title = file,
  WriteAllSubTrees = TRUE,
  ...
)

Arguments

x

Object to write

file

Path to output file

...

Additional arguments to methods

datatype

The VTK data type (one of float or double)

title

Title of the .vtk file (defaults to file)

WriteAllSubTrees

Whether to write all subtrees in the neuron or just the main tree.

Examples

1
2
3
4
5
6
## Not run: 
n=Cell07PNs[[1]]
write.vtk(n, paste0(n$NeuronName, ".vtk"))
write.neuron(n, paste0(n$NeuronName, ".vtk"))

## End(Not run)

nat documentation built on Sept. 6, 2021, 5:09 p.m.