plot,pkbc,ANY-method {QuadratiK} | R Documentation |
Plotting method for Poisson kernel-based clustering
Description
Plots for a pkbc object.
Usage
## S4 method for signature 'pkbc,ANY'
plot(x, true_label = NULL, pca_res = FALSE)
Arguments
x |
Object of class |
true_label |
factor or vector of true membership to clusters (if available). It must have the same length of final memberships. |
pca_res |
Logical. If TRUE the results from PCALocantore when dimension is greater than 3 are also reported. |
Details
scatterplot: If dimension is equal to 2 or 3, points are displayed on the circle and sphere, respectively. If dimension if greater than 3, the spherical Principal Component procedure proposed by Locantore et al., (1999) is applied for dimensionality reduction and the first three principal components are normalized and displayed on the sphere. For d > 3, the complete results from the
PcaLocantore
function (packagerrcov
) are returned if pca_res=TRUE.elbow plot: the within cluster sum of squares (wcss) is computed using the Euclidean distance and the cosine similarity.
Value
One of the following plot:
scatterplot of data points colored by final membership
elbow plot
References
Locantore, N., Marron, J.S., Simpson, D.G. et al. (1999) "Robust principal component analysis for functional data." Test 8, 1–73. https://doi.org/10.1007/BF02595862
Examples
dat<-matrix(rnorm(300),ncol=3)
pkbc_res<- pkbc(dat, 3)
stats_clusters(pkbc_res, 3)