仅绘制三元图的角落

时间:2017-03-31 13:31:00

标签: r plot ggplot2 ggtern

我试图仅绘制三元图的一角(我的所有数据都存在),但似乎无法用start计算出来,用" X"分别设为T,L和R.

dropbox link to dummy data set

这就是我制作的人物的样子。如果可能的话,我想绘制最小的三角形。我假设我错误地定义了限制,因为我收到一个错误说明"错误:无效的三元限制,每个点必须与Unity相加......" enter image description here

1 个答案:

答案 0 :(得分:1)

scale_X_continous()限制参数似乎需要值< 1上班。这样做你想要的:

 ggtern(data=dummy,aes(x=x,y=y,z=z,col=type)) +
 geom_point() + 
 scale_T_continuous(limits=c(0,.2))+ 
 scale_L_continuous(limits=c(0,.2))+ 
 scale_R_continuous(limits=c(0.8,1))
相关问题