plotDensity | R Documentation |
Plot density of two-dimensional data.
plotDensity(Data, Cls, CurrGauss, Colors, GridDensity,Means, Covariances,Weights, MainAxesAngle,XKernel, YKernel, Shapes, ShapeText, AxNames = c("X1", "X2"),ShowAxis = FALSE, ShowEllipsoids = TRUE, ShowScatter = FALSE,ShowGaussNr = FALSE, Source = "D")
Data |
[1:n, 1:2] Numeric matrix with n observations and 2 features. |
Cls |
[1:n] Numerical vector of size n containing the classes of each observation. |
CurrGauss |
Integer number indicating the currently highlighted gaussian component. |
Colors |
[1:l] Character vector with l color names or more. |
GridDensity |
[1:x, 1:x] Numeric matrix with PDF for a GMM with one or more Gaussians on a Grid defined by the vectors XKernel and YKernel. |
Means |
List with l [1:2] numerical vector defining the means of the l GMM components. |
Covariances |
List with l [1:2, 1:2] numerical matrices defining the covariance matrices of the l GMM components. |
Weights |
[1:l] Numerical vector with weights for each GMM component. |
MainAxesAngle |
List of numeric vectors with 1st and 2nd main axes of a 2D ellipsoid and the respective angles measured to the first unit vector c(0,1). |
XKernel |
[1:x] Numeric vector defining domain of x axis. |
YKernel |
[1:x] Numeric vector defining domain of y axis. |
Shapes |
List of List with 4 attributes (type, fillcolor, opacity, path) for a shape for plotting. Here it is used for plotting an ellipsoid. |
ShapeText |
[1:l, 1:3] Numeric matrix with l means and two entries for the two-dimensional coordinates and one entry for the number of the Gaussian component. |
AxNames |
[1:2] Character vector with ax names for plot description. |
ShowAxis |
Boolean indicating to show models axis or not. |
ShowEllipsoids |
Boolean indicating to show models ellipsoids or not. |
ShowScatter |
Boolean indicating if data scatter is shown or not. |
ShowGaussNr |
Boolean indicating to enumerate model components. |
Source |
Character indicating plot source (Default = "D"). Important attribute for plotly in shiny in order to keep control of specific panels. |
plotOut |
Plotly object containing plot for direct visualization. |
Quirin Stier
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.