clusterPCA: Plot PCA of cluster characteristics

View source: R/clusterPCA.R

clusterPCAR Documentation

Plot PCA of cluster characteristics

Description

This function performs a principal component analysis (PCA) on selected cluster characteristics obtained from postHoc and returns a plot of the variable loadings for the first two principal components.

Usage

clusterPCA(
  resposthoc,
  selectedVar = c("TDP", "meanlogFC", "nbPixels", "nbBins", "minHeight", "maxHeight",
    "stripeScore", "triangleScore")
)

Arguments

resposthoc

An object of class resposthoc obtained from the function postHoc.

selectedVar

A character vector specifying the variables to include in the PCA. The default is c("TDP", "meanlogFC", "nbPixels", "nbBins", "minHeight", "maxHeight", "stripeScore", "triangleScore").

Value

A ggplot object displaying the loadings of the first two principal components computed from the selected cluster characteristics.

Author(s)

Élise Jorge elise.jorge@inrae.fr
Sylvain Foissac sylvain.foissac@inrae.fr
Toby Dylan Hocking toby.hocking@r-project.org
Pierre Neuvial pierre.neuvial@math.univ-toulouse.fr
Nathalie Vialaneix nathalie.vialaneix@inrae.fr

Examples

data("pighic")
resdiff <- performTest(pighic$data, pighic$conditions)
res2D <- AggloClust2D(resdiff)
if (!is.null(res2D)) {
  resposthoc <- postHoc(resdiff, res2D$clustering, alpha = 0.05)
  clusterPCA(resposthoc)
}


hicream documentation built on Nov. 27, 2026, 1:07 a.m.