View source: R/regime-integration.R
| plot.regime_correlation_pca | R Documentation |
Draw compact PCA views from regime_correlation_pca(). The default
"loadings" view reconstructs upper-triangle loading vectors as symmetric
trait-by-trait heatmaps, matching the Supplementary Figure 4B-style
interpretation of correlation-structure axes.
## S3 method for class 'regime_correlation_pca'
plot(
x,
type = c("loadings", "scores", "variance"),
components = 1:4,
pc_x = 1L,
pc_y = 2L,
palette = NULL,
main = NULL,
cluster = c("none", "global", "local"),
heatmap_engine = c("auto", "base", "ComplexHeatmap"),
show_dendrogram = TRUE,
show_legend = TRUE,
cex.axis = 0.62,
...
)
x |
A |
type |
Plot type: |
components |
Principal components to draw for loading or variance
plots. Supply numeric indices or names such as |
pc_x, pc_y |
Components for the score scatter plot. The default uses PC1 and PC2 when available, or PC1 for both axes when only one component exists. |
palette |
Optional color vector for loading heatmaps. |
main |
Optional plot title. For loading plots with multiple components, supply one title per component. |
cluster |
Loading-heatmap clustering style: |
heatmap_engine |
Loading-heatmap renderer. |
show_dendrogram, show_legend |
Logical controls used by the optional
|
cex.axis |
Axis label size for loading heatmaps. |
... |
Additional graphical parameters passed to base plotting functions. |
Invisibly returns x.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.