PPBstats
For variance intra analysis, you can follow these steps (Figure \@ref(fig:main-workflow)) :
format_data_PPBstats()
ggcorrplot::ggcorrplot()
^[http://www.sthda.com/english/wiki/ggcorrplot-visualization-of-a-correlation-matrix-using-ggplot2]multivariate()
factoextra
^[https://github.com/kassambara/factoextra]data("data_model_GxE") data_model_GxE = format_data_PPBstats(data_model_GxE, type = "data_agro")
library(ggcorrplot) vec_variables = c("y1", "y2", "y3") corr = round(cor(data_model_GxE[,vec_variables]), 1) p.mat = cor_pmat(data_model_GxE[,vec_variables]) # Barring the no significant coefficient ggcorrplot(corr, hc.order = TRUE, type = "lower", p.mat = p.mat)
More details on the use of ggcorrplot()
can be found here.
vec_variables = c("y1", "y2", "y3") res.pca = mutlivariate(data_model_GxE, vec_variables, PCA)
Look at the results thanks to the factoextra
package:
fviz_eig(res.pca)
fviz_pca_ind(res.pca, label="none", habillage="location", addEllipses=TRUE, ellipse.level=0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.