Learn R Programming

VecStatGraphs2D (version 1.8)

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. When the data concentration is too low (von Mises parameter below 0.9) the mean azimuth is not plotted. This confidence interval depends on the mean module, the number of azimuths and the von Mises parameter.

Usage

DrawDistribution(azimuths, SVGf = 0)

Arguments

azimuths
Vector containing the values of the azimuths
SVGf
Integer value. If SVGf = 0, the plot is showed only in the graphic window. If SVGf = 1, then the plot is saved as SVG graphic. The default value is 0.

Value

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

Details

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

DrawAzimuthDensity, DrawHistogram, DrawPoints,

DrawModuleAndAzimuthDistribution, DrawDensityMap, DrawVectors.

Examples

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

Run the code above in your browser using DataLab