Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201867

ggbiplot - How to change the position of arrow labels

$
0
0

we have the results of a PCA done with prcomp(). Afterwards we plotted the results with :

ggbiplot(PCA_Hochfl,  labels.size = 2, varname.size = 3.5,  cex=c(5,1)) + geom_point() +
         geom_text(aes(label=ifelse(mw_H$Group.1 == "H14", as.character(mw_H$Group.1), ''), 
                   hjust=1.05, vjust=-0.2)) + 
         geom_text(aes(label=ifelse(mw_H$Group.1 != "H14", as.character(mw_H$Group.1), ''), 
                   hjust=-0.15, vjust=-0.2)) 

We have the following result:

enter image description here

As you can see on the left: the labels from 2 arrows are on top of each other. How can I move one of the labels downwards while moving the other upwards.

We would really appreciate some help. Thank you all very much in advance. Best, Helena


Viewing all articles
Browse latest Browse all 201867

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>