在每一个连续点之间是否有一条直线将ggtern中的观测数据连在一起?我的代码是:
require(ggtern)
x <- data.frame(
A = c( 0, 0, 1, 0.1, 0.6, 0.2,0.8,0.33 ),
B = c( 0, 1, 0, 0.3, 0.2, 0.8, 0.1,0.33),
C = c( 1, 0, 0, 0.6, 0.2, 0.0, 0.1,0.33)
)
ggtern(data=x,aes(A,B,C)) +
geom_point(fill="blue",type="l",shape=21,size=2)
theme_classic() )发布于 2015-09-22 14:36:10
geom_path(...)按顺序连接各点。
ggtern(data=x,aes(A,B,C)) +
geom_path(color="green")+
geom_point(type="l",shape=21,size=8) +
geom_text(label=seq(nrow(x)), color="red")+
theme_classic()

我改变了点的大小和形状,并添加了标签,以表明它们是按顺序连接的。
https://stackoverflow.com/questions/32716823
复制相似问题