DrawDensityMap(data_x, data_y, PercentageOutliers = 5, PaintPoint = FALSE,
Div = 250, HarmonicMean = FALSE, PaintAxis = FALSE, SVGf=0)
The parameter Div is very important because a very large value will lead to the creation of a slow density map, whereas a very small value will create an ineffective density map.
One way to obtain a set of X and Y coordinates of the vectors is to use the LoadData
function.
Typical usages are
DrawDensityMap(data_x, data_y, \dots) DrawDensityMap(data_x, data_y, Div = 100, \dots) DrawDensityMap(data_x, data_y, PaintPoint = TRUE, HarmonicMean = TRUE, PaintAxis = TRUE, \dots) ......
DrawAzimuthDensity
, DrawHistogram
, DrawDistribution
, DrawPoints
, FileName<-system.file("data/RectangularData.txt", package="VecStatGraphs2D")
dat<-LoadData(FileName, Type=2)
X_coordinate<-dat[,3]
Y_coordinate<-dat[,4]
DrawDensityMap(X_coordinate, Y_coordinate, PaintPoint = TRUE, Div=200, SVGf=0)
Run the code above in your browser using DataLab