View source: R/DensityBiplot.R

DensityBiplot | R Documentation |

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

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

`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 |

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.

No value returned. It has effect on the graph.

Jose Luis Vicente Villardon

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

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.