Learn R Programming

VecStatGraphs3D (version 1.6)

MeanDirection3D: Calculation of the Mean Direction of the angles.

Description

This function calculates the Mean Direction of a set of input coordinates.

Usage

MeanDirection3D(coord)

Arguments

coord
Matrix containing the values of the coordinates

Value

The mean direction value of all input coordinates. The value is expressed in sexagesimal.

Details

One way to get a set of coordinates X, Y and Z of the origin position and end position (coordinates X, Y and Z of the vector) or of the colatitude and longitude, it is using the LoadData3D function.

References

Fisher N.I. , Lewis T. , Embleton, B.J.J. (1987) Statistical analysis of spherical data. Cambridge. Cambridge University Press.

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

See Also

AllAngleStatistics, MeanModule3D, SphericalStandardError3D, ConcentrationParameter3D.

Examples

Run this code
   FileName<-system.file("data/XYZcoor.txt", package="VecStatGraphs3D")
   dat<-LoadData3D(FileName, Type=1)
   coordinates<-dat[,4:6]
   MeanDirection3D(coordinates)

Run the code above in your browser using DataLab