plot.streamline: Streamline Plotting

Description Usage Arguments Value Examples

Description

This function plots a strewamline in 3D using the rgl package. If diffusion tensor information is available, it is also plotted as ellipsoids at each point of the streamline.

Usage

1
2
3
## S3 method for class 'streamline'
plot(streamline, validate = TRUE,
  plot_microstructure = FALSE, new_window = TRUE, scale = 4, ...)

Arguments

streamline

A streamline object.

validate

A boolean specifying whether the class of the input object should be checked (default: TRUE).

plot_microstructure

A boolean specifying if microstruture should be superimposed on the displayed streamlines.

new_window

A boolean specifying whether a new graphical window should be used (default: TRUE).

scale

A scalar that handles the ellipsoid scale (default: 4).

...

Additional plotting parameters to be passed to rgl basic plotting functions.

Value

The function is used for its side effect of plotting.

Examples

1
2
3
4
file <- system.file("extdata", "CC_SingleTensor.csv", package = "fiber")
cc <- read_tract(file)
st <- cc$data[[1]]
plot_streamline(st)

astamm/fdatractography documentation built on May 12, 2019, 5:37 a.m.