I used this command line to make a Scree plot in which the first dimension shows most of the variation.
res.pca <- prcomp(log2(src1+1), scale. = TRUE)
res.pca
plot1 <- fviz_eig(res.pca)
plot1
Here is SD of the samples (36 samples):
Standard deviations (1, .., p=36):
[1] 5.95582467 0.28407652 0.26522238 0.20868660 0.20012316 0.16888365 0.15432002 0.14181776 0.13427364
[10] 0.13116676 0.11774602 0.11533978 0.11221367 0.10495140 0.10142414 0.09890213 0.09604759 0.09339936
[19] 0.09077357 0.08893056 0.08650105 0.08548026 0.08308853 0.08097912 0.07497496 0.07413417 0.07224579
[28] 0.07124431 0.06996434 0.06759544 0.06335228 0.06141117 0.06091347 0.05944077 0.05849182 0.05754510
and my PCA plot is:
I want a help to know that how I can plot the Scree plot in a way that dimensions of the Scree plot to be in the same percentage of the PCA plot (e.g. PC1 <- 15.55% and PC2 <- 13.82%)?




0.9853291- Apexsrc2 <- as.data.frame(t(src1)) prcmp <- prcomp(log2(src2[,-1]+1)) pc.x <- 1 pc.y <- 2 cnt.x <- mean(prcmp$x[,pc.x]) cnt.y <- mean(prcmp$x[,pc.y]) autoplot(prcmp, data = src2, colour = 'Groups', x=1, y=2) + geom_point(x=cnt.x, y=cnt.y, colour="red", size=5)- Apex