【发布时间】:2018-07-22 11:58:06
【问题描述】:
我想在两点之间画箭头。这就是问题所在,我用图形程序制作了三个箭头来解释我的问题。
这是我的源代码:
require(plotly)
a <- c(5,16,16,17,18,23,25,27,37,42,5)
b <- c(13,12,26,15,14,6,10,22,14,25,17)
c <- c(12,14,25,26,8,9,27,30,31,26.5,12)
ap <- c(5,12,16,17,11,23,25,27,37,21.5,5)
bp <- c(13,12,26,15,14,6,10,22,14,12.5,17)
cp <- c(12,14,25,26,8,9,27,30,31,26,12)
rnn <- c("U1", "U2", "U3", "U4", "U5", "U6", "U7", "U8", "U9", "U10", "U11")
m <- list( symbol = 200, size = 8, line = list( color = toRGB("yellow"), width = 2 ) )
m1 <- list( symbol = "triangle", color="black", sizemod = "diameter", size = 5, line = list( color = "black", width = 2 ) )
plot_ly(x = ap, y = bp, z = cp) %>%
add_trace(marker = m1, type = "scatter3d", mode = "text+markers",
name = "projected", linetypes = NULL, text = rnn) %>%
add_trace(x = a, y = b, z = c, marker = m, type = "scatter3d", mode = "text+markers",
name = "original", linetypes = NULL, text = rnn)
非常感谢。
【问题讨论】:
-
什么是
marker = m1? -
对不起 ... m