A simple PCA analysis in R

preview_player
Показать описание
Performing a principal component analysis with only few lines of R codes.

Prepare your data in the Microsoft Excel and run the code. Second column in the "sample_metadata" sheet will be used for coloring data points in the PCA plot.

Save file : click the export button to save the PCA plot in different image format.
Рекомендации по теме
Комментарии
Автор

file saved to pcaplot.pdf. But no content in the file.
Error in write.xlsx(l, "pcares.xlsx") :
could not find function "write.xlsx". I installed the writexl package and library still the error persists. Please help to rectify this problem.

KN-txsd
Автор

cdf <- as.data.frame(readxl::read_xlsx("r101_test_data.xlsx", sheet = "data_dictionary"))
Error en utils::unzip(zip_path, list = TRUE):
archivo zip metabolómica\Tutorial PCA in R\R101\r101_test_data.xlsx' cannot be loaded

JUANVICENTEVALOR