Learn R Programming

VecStatGraphs3D (version 1.6)

DrawModuleAndAngleDistribution3D: Graphic representation of Module and Angle Distribution.

Description

This function creates a 3D graph, that allows us to check the angular and linear magnitudes simultaneously.

Usage

DrawModuleAndAngleDistribution3D(dat, Long=FALSE, hW=0.5, hL=0.3, plane, BarSlider=FALSE)

Arguments

dat
Matrix containing the values of the LoadData3D
Long
Logical value, if Long = TRUE we can select an area of points for to obtain its length.The default value is Long = FALSE.
hW
Integer value, representing the width of the head of the arrows. The default value is 0.5
hL
Integer value, representing the lenght of the head of the arrows. The default value is 0.3
plane
Possible values are XY, XZ and YZ represents the plane where they will draw the orientacion the heads of the arrows.
BarSlider
Logical value, if BarSlider = TRUE we may change the size of the heads of the arrows through a slider.The default value is BarSlider = FALSE.

Value

This function returns no value, creates a 3D graph that represents module and angle distribution

Details

The 3D graph draws an arrow for each of the samples. The lines will have origin in (0,0) and end at coordinates (X, Y, Z). Typical usages are
    DrawModuleAndAngleDistribution3D(dat, Long = FALSE, plane = "XY", ...)
    DrawModuleAndAngleDistribution3D(dat, hW = 0.6, hL = 0.4, ...)
	  DrawModuleAndAngleDistribution3D(dat, Long = FALSE, plane = "XY", BarSlider = TRUE, ...)
   

References

Website http://gim.unex.es/VecStatGraphs3D/

See Also

DrawDensity3D.

Examples

Run this code
   FileName<-system.file("data/XYZcoor.txt", package="VecStatGraphs3D")
   dat<-LoadData3D(FileName, Type=1)
   DrawModuleAndAngleDistribution3D(dat, plane="XY");

Run the code above in your browser using DataLab