Learn R Programming

VecStatGraphs2D (version 1.8)

DrawHistogram: Graphic representation of the histogram of the azimuth distribution

Description

This function creates a graph that represents a circumference divided into sectors with different radii. Each radius represents the percentage of azimuth data that belong to each sector. Each portion represents the azimuths that exist between the angles formed by the sides of the portion.

Usage

DrawHistogram(azimuths, ClassSize = 15, SVGf = 0)

Arguments

azimuths
Vector containing the values of the azimuths
ClassSize
Integer value that represents the size of each portion. The default value is 15.
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 a circular histogram of the input data.

Details

This function shows where the highest concentration of points is located.

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

    DrawHistogram(azimuths, \dots)
    DrawHistogram(azimuths, ClassSize = 20, \dots)
    ......
   

References

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

See Also

DrawDistribution, DrawPoints, DrawModuleAndAzimuthDistribution, DrawDensityMap, DrawVectors.

Examples

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

Run the code above in your browser using DataLab