Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

DensityBiplot

Adds Non-parametric densities to a biplot. Separated densities are calculated for different clusters


Description

Adds Non-parametric densities to a biplot. Separated densities are calculated for different clusters

Usage

DensityBiplot(X, y = NULL, grouplabels = NULL, ncontours = 6, 
groupcolors = NULL, ncolors=20, ColorType=4)

Arguments

X

Two dimensional coordinates of the points in a biplot (or any other)

y

A factor containing clusters or groups for separate densities.

grouplabels

Labels for the groups

ncontours

Number of contours to represent on the biplot

groupcolors

Colors for the groups

ncolors

Number of colors for the density patterns

ColorType

One of the following: "1" = rainbow, "2" = heat.colors, "3" = terrain.colors, "4" = topo.colors, "5" = cm.colors

Details

Non parametric densities are used to investigate the concentration of row points on different areas of the biplot representation. The densities can be calculated for different groups or clusters in order to investigate if individuals with differnt characteristics are concentrated on particular areas of the biplot. The procedure is particularly useful with a high number of individuals.

Value

No value returned. It has effect on the graph.

Author(s)

Jose Luis Vicente Villardon

References

Gower, J. C., Lubbe, S. G., & Le Roux, N. J. (2011). Understanding biplots. John Wiley & Sons.

Examples

bip=PCA.Biplot(iris[,1:4])
plot(bip, mode="s", CexInd=0.1)

MultBiplotR

Multivariate Analysis Using Biplots in R

v1.3.30
GPL (>= 2)
Authors
Jose Luis Vicente-Villardon
Initial release
2021-03-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.