Learn R Programming

VecStatGraphs2D (version 1.6)

DrawDistribution: Graphic representation of the distribution of the azimuths

Description

This function creates a graph that represents the distribution of the azimuths. Every azimuth is plotted as a blue point in a unit circle. The mean azimuth is represented by a red arrow. A 95 percentage confidence interval for the mean azimuth is plotted in red. This confidence interval depends on the mean module, the number of azimuths and the von Mises parameter.

Usage

DrawDistribution(azimuths, Direction = 2)

Arguments

azimuths
Vector containing the values of the azimuths
Direction
Integer value that indicates the direction of the data. Direction 1 = Mathematical direction (0 grades E counterclockwise). Direction 2 = Topographical direction (0 grades N clockwise). The default value is 2.

Value

  • This function returns no value and creates a graph that represents the distribution of the input data.

Details

It is very important to always work with the same direction. If the data are loaded in the topographical direction and the graphic representation of the distribution in the mathematical direction, then the resulting graph will be wrong. With this function, the positions of the largest and smallest concentrations of points can be observed. One way to obtain a set of azimuths from X and Y coordinates of the vectors is to use the LoadData function. Typical usages are DrawDistribution(azimuths, \dots) ......

References

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

See Also

DrawHistogram, DrawPoints, DrawModuleAndAzimuthDistribution, DrawDensityMap, DrawVectors.

Examples

Run this code
FileName<-system.file("data/RectangularData.txt", package="VecStatGraphs2D")
   dat<-LoadData(FileName, Type=2, Direction=2)
   azimuths<-dat[,2]
   DrawDistribution(azimuths, Direction = 2)

Run the code above in your browser using DataLab