Question: Widening the distances between PCA vectors in PCA a biplot
0
gravatar for arronar
11 weeks ago by
arronar50
Austria
arronar50 wrote:

Hello.

I'm running a PCA analysis on R with 62 variables and when creating the biplot some vectors are getting on top of others and i cannot read their labels (see pic). Is there any way to make them more readable.

enter image description here

I used the factoextra package to plot it by running

fviz_pca_biplot(res.pca)

Thank you.

vector pca piblot R bioplot • 199 views
ADD COMMENTlink modified 11 days ago by Alex Reynolds19k • written 11 weeks ago by arronar50
1

you could remove the black dot labels with fviz_pca_biplot(res.pca, label ="var") or you can simply get rid of black dots with fviz_pca_biplot(res.pca, invisible ="ind"). once you remove black dots, if you use xlim and ylim that only encircles your blue arrows. say your arrows are within the x axis range -3,2 while y axis range is 1,5 to -2 then do fviz_pca_biplot(res.pca, invisible ="ind") + xlim(-3,2) + ylim(-2,1.5) . I think this might widen the spaces.

ADD REPLYlink modified 11 weeks ago • written 11 weeks ago by firatuyulur160

Thank you very much. Seems that it works.

ADD REPLYlink written 11 weeks ago by arronar50
1
gravatar for Alex Reynolds
11 days ago by
Alex Reynolds19k
Seattle, WA USA
Alex Reynolds19k wrote:

In addition to using a smaller type size, you can render the plot to PDF, open with Adobe Illustrator, and add a stroke color of white and a thickness of 0.25pt. Adding a thin outline around text helps distinguish one label from another by keeping labels from blending into one another.

ADD COMMENTlink written 11 days ago by Alex Reynolds19k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1167 users visited in the last hour