From 7d18a9d3c63536eb4b2f77a45c67c4a649ac1da0 Mon Sep 17 00:00:00 2001 From: kaleynguyen <55406245+kaleynguyen@users.noreply.github.com> Date: Sun, 17 Sep 2023 22:59:05 -0500 Subject: [PATCH] Update 03_Data_Pre_Processing.R Add (center = TRUE) in prcomp --- inst/chapters/03_Data_Pre_Processing.R | 1 + 1 file changed, 1 insertion(+) diff --git a/inst/chapters/03_Data_Pre_Processing.R b/inst/chapters/03_Data_Pre_Processing.R index 9d92d26..6f9396a 100644 --- a/inst/chapters/03_Data_Pre_Processing.R +++ b/inst/chapters/03_Data_Pre_Processing.R @@ -89,6 +89,7 @@ histogram(~segTrainTrans$PerimCh1, ## R's prcomp is used to conduct PCA pr <- prcomp(~ AvgIntenCh1 + EntropyIntenCh1, data = segTrainTrans, + center = TRUE, scale. = TRUE) transparentTheme(pchSize = .7, trans = .3)