density2D {biplotEZ} | R Documentation |
Create a density in 2-dimensions
Description
Create a density in 2-dimensions
Usage
density2D(
bp,
which = NULL,
contours = F,
h = NULL,
n = 100,
col = c("green", "yellow", "red"),
contour.col = "black",
cuts = 50,
cex = 0.6,
tcl = -0.2,
mgp = c(0, -0.25, 0),
layout.heights = c(100, 10),
legend.mar = c(2, 5, 0, 5)
)
Arguments
bp |
object of class |
which |
which group. |
contours |
logical indicating whether contours are added to the density plot |
h |
vector of bandwidths for x and y directions, see |
n |
number of grid points in each direction. Can be scalar or a length-2 integer vector. |
col |
vector of colours to use to form a 'continuous' sequence of colours. |
contour.col |
colour of the contours. |
cuts |
number of colours in |
cex |
character expansion. |
tcl |
The length of tick marks as a fraction of the height of a line of text. |
mgp |
The margin line. |
layout.heights |
A vector of values for the heights of rows. |
legend.mar |
The margin line of the legend. |
Value
An object of class biplot
.
Examples
biplot(iris[,1:4],group.aes = iris[,5]) |> PCA() |>
density2D(which=3,col=c("white","purple","cyan","blue")) |> plot()
biplot(iris[,1:4],group.aes = iris[,5]) |> PCA() |>
density2D(which=3,col=c("white","purple","cyan","blue"),contours = TRUE,
contour.col = "grey") |> plot()
[Package biplotEZ version 2.0 Index]