简体   繁体   English

ggbiplot R的辅助轴

[英]secondary axis to ggbiplot R

I'd like to add a secondary set axes to ggbiplot; 我想在ggbiplot中添加辅助设置轴; The points and the arrows have, in my case (and probably in many others), huge scale difference. 在我的情况下(可能还有许多其他情况),这些点和箭头存在巨大的比例差异。 I'd like the points to have one set x and y labels (say bottom(x) and left(y)) that will represent the values of PC1 and PC2 and the arrows will have a different x and Y (say top(x) side of the plot and right(y)), similar to how biplot does it. 我希望这些点具有一组x和y标签(例如,bottom(x)和left(y)),它们分别表示PC1和PC2的值,而箭头将具有不同的x和Y(例如,top(x )边和right(y)),类似于biplot的工作方式。 Any suggestions. 有什么建议么。

Thanks a lot, Guy 非常感谢,盖伊

我建议您阅读Ellisp的这篇文章,他提供了R的优雅方法来处理双轴图http://ellisp.github.io/blog/2016/08/18/dualaxes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM