Stereo3D: Create Stereo3D image of given data

Description Usage Arguments Value Examples

View source: R/Stereo3D.R

Description

Stereo3D: Using stereo images to enrich 3D visualization

Usage

1
Stereo3D(data_file, stereo_angle, distance, connection_file )

Arguments

data_file

A tab seperated file with .tsv extension and having five columns (index, X, Y, Z and Color) of the data. Where, X, Y and Z represent cordinates of a datapoint, Color is the label of the given data point and index clolumn have the index information of the datapoints.

stereo_angle

angle by which 3D data to be rotated along Y-axis. Default: 5 degree.

distance

Gap between stereo image and original image.

connection_file

A tab seperated file (optional) . Where, first and second column has indices of start and end point of a connection respectively.

Value

Two Stereo3D images

  1. Create Stereoscopic 3D plot with input data filename prefix and _Stereo.pdf extention.

  2. Interactive 3D plot for the above image pops up, which can be zoomed and rotated by draging the mouse.

Examples

1
2
3
connection_fileName=system.file("extdata", "connection_file.tsv", package = "Stereo3D", mustWork = TRUE)
sample_data_file=system.file("extdata", "sample_3D_data.tsv", package = "Stereo3D", mustWork = TRUE)
Stereo3D(data_file=sample_data_file, stereo_angle=5, distance=0, connection_file=connection_fileName)

bioinfoDZ/Stereo3D documentation built on March 25, 2021, 12:04 a.m.