PCA plots in R core when using Jupyter notebook
I want to see plots generated by the PCA function from the FactoMineR package when I use the R Jupyter Notebook core. In RStudio they are displayed on the site. However, I cannot open them here.
+3
Antonio Lรณpez Ruiz
source
to share
1 answer
You have to do a PCA, but don't draw plots using the argument graph=FALSE
, and then you plot the plot using the plot function:
data(decathlon)
res <- PCA(decathlon,quanti.sup=11:12, quali.sup=13, graph=FALSE)
plot(res, choix="ind")
plot(res, choix="var")
+1
Husson
source
to share