Compute the PCA.

Parameters:

Parameters:
See dedicated page for more information.
The R_PCA action button performs Principal Component Analysis (PCA), a powerful technique for dimensionality reduction and exploratory data analysis. PCA transforms a high-dimensional dataset into a set of linearly uncorrelated components, called principal components, ordered by their ability to explain variance in the data.
This action is especially useful when working with datasets containing many numeric features. By projecting data onto the principal components, users can identify underlying patterns, groupings, and relationships between observations and variables. The transformation is visualized through interactive 2D or 3D biplots and variance plots generated in HTML format.
This action accepts up to three input tables:
The main data (Pin 0) should contain rows as observations and columns as features. Categorical variables should be excluded or preprocessed. Missing values can be automatically handled.

Upon successful execution, the action generates:
These outputs are accessible in the Records tab or via downstream components.
Prepare Input Data
Upload a clean numeric dataset to be analyzed. Ensure no categorical variables are included in idxVars.
Configure Parameters
idxMainidxVarsidxScale for standardizationplot1 to line chart or bar chart for variance visualizationplot2 to true to enable the component scatter/biplotEnable Outputs
idxPlotSave to save chart HTML filesidxPredict to write PCs into the output tableidxSaveModel to save the trained PCA modelRun the Pipeline
Execute the workflow and wait for completion. Once done, the interactive HTML outputs can be viewed from the Records tab.

Sample Input Table
| Feature1 | Feature2 | Feature3 | Category |
|---|---|---|---|
| 2.1 | 3.4 | 1.2 | A |
| 1.9 | 3.1 | 0.8 | A |
| 3.2 | 4.1 | 2.3 | B |
| 3.0 | 4.0 | 2.1 | B |
| 4.5 | 5.3 | 3.9 | C |
Output Charts:
PCA_PCA.HTML: Explained variance across components
PCA_PCAPlot.HTML: 3D biplot with labeled points and variable vectors
This interactive plot can be rotated and zoomed.
The R_PCA action is a flexible and powerful PCA implementation built on R. With support for interactive plots, preference data, output saving, and rich customization, it enables deep insight into data structure and variance.
Notes
- Always scale data for PCA to prevent bias due to variable magnitude.
- Consider excluding variables with low variance or many missing values.
- PCA assumes linearity — nonlinear structures may not be well represented.
