Learn R Programming

VecStatGraphs2D (version 1.6)

DrawVectors: Graphic representation of the vectors

Description

This function creates a graph that shows an arrow for each vector. The graph represents the situation of every vector by its coordinates. To represent this graph, the input data must be the cartesian coordinates (Type = 1).

Usage

DrawVectors(final_data_, initial_data_)

Arguments

final_data_
Matrix containing the coordinates of the final data
initial_data_
Matrix containing the coordinates of the initial data

Value

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

Details

The cartesian coordinates cannot be calculated. They must be introduced as input data, although it is advisable to use LoadData for obtain the vectors of the X and Y coordinates as well as the azimuths of the final values.

References

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

See Also

DrawHistogram, DrawDistribution, DrawPoints, DrawModuleAndAzimuthDistribution, DrawDensityMap.

Examples

Run this code
FileName<-system.file("data/MeasuredRealData.txt", package="VecStatGraphs2D")
   dat<-LoadData(FileName, Type=1, Direction=2)
   final_data_<-dat[,6:7]
   initial_data_<-dat[,8:9]
   DrawVectors(final_data_, initial_data_)

Run the code above in your browser using DataLab