When I knit my Rmd file, the graphs related to my PCA are not shown on the html file. The PCA seems to be working though.
library("FactoMineR")
data(decathlon)
decathlon.active <- decathlon[1:23, 1:10]
head(decathlon.active[, 1:6], 4)
res.pca <- PCA(decathlon.active, graph = TRUE)
print(res.pca)
## **Results for the Principal Component Analysis (PCA)**
## The analysis was performed on 23 individuals, described by 10 variables
## *The results are available in the following objects:
##
## name description
## 1 "$eig" "eigenvalues"
## 2 "$var" "results for the variables"
## 3 "$var$coord" "coord. for the variables"
## 4 "$var$cor" "correlations variables - dimensions"
## 5 "$var$cos2" "cos2 for the variables"
## 6 "$var$contrib" "contributions of the variables"
## 7 "$ind" "results for the individuals"
## 8 "$ind$coord" "coord. for the individuals"
## 9 "$ind$cos2" "cos2 for the individuals"
## 10 "$ind$contrib" "contributions of the individuals"
## 11 "$call" "summary statistics"
## 12 "$call$centre" "mean of the variables"
## 13 "$call$ecart.type" "standard error of the variables"
## 14 "$call$row.w" "weights for the individuals"
## 15 "$call$col.w" "weights for the variables"
When trying to knit a preview of my PCA (with httpgd
), vscode displays white frames with nothing in it
For the preview, I tried opening the plots on the web. I can visualize 1 graph, but still no scatter plot.