Principal Component Analysis (PCA) and Statistical Tests Using Factoshiny and R Commander.

25 October 2021, Version 1
This content is a preprint and has not undergone peer review at the time of posting.


Spreadsheets are commonly used for data handling. However, in huge data sets, spreadsheets cannot do statistical tests, such as one-way ANOVA, boxplot, plot of means, principal component analysis (PCA). Most of the students had never worked with programming software such as MATLAB, Phyton, Octave and R project. Hence, in this lab experiment, students analyzed large data sets using R Commander and Factoshiny plugins. Commander and Factoshiny are packages which gives graphical user interface (GUI). GUI plugins allows students with no programming knowledge to run statical tests quickly and easily without having to type a single command line. The class was divided into three parts. First, students analyzed a red wine data set (1599 samples, 11 physicochemical variables, and one qualitative variable) to find correlations between wine quality (qualitative variable) and its physicochemical variables (quantitative variable). Second, they analyzed a white wine data set (4898 samples, 11 physicochemical variables, and one qualitative variable) to find correlations between white wine quality and its physicochemical variables. Third, they analyzed a red wine and white wine data set and found correlations between wine's physicochemical variables and their quality and type. Statistical tests and PCA were carried out using R Commander and Factoshiny, respectively. Due to the graphical interface and simplicity of these two plugins, the class can be concluded in 200 min.


R project
R Commander
Graduate Education / Research
Analytical Chemistry
Computational Chemistry

Supplementary materials

Tables used in the examples given in the paper (ZIP)

Supplementary weblinks


Comments are not moderated before they are posted, but they can be removed by the site moderators if they are found to be in contravention of our Commenting Policy [opens in a new tab] - please read this policy before you post. Comments should be used for scholarly discussion of the content in question. You can find more information about how to use the commenting feature here [opens in a new tab] .
This site is protected by reCAPTCHA and the Google Privacy Policy [opens in a new tab] and Terms of Service [opens in a new tab] apply.