【问题标题】:Turn off projected lines in plotly关闭绘图中的投影线
【发布时间】:2018-01-04 19:38:42
【问题描述】:

当鼠标悬停在数据上时,如何关闭投影到绘图 3 轴平面上的线条?我无法弄清楚使用哪个设置来关闭这些。

plot with projected lines

library(plotly)

# data
x <- runif(50, 0, 1)
y <- runif(50, 0, 1)
z <- runif(50, 0, 1)

# hide grid
ax <- list(
  title = "",
  showgrid = FALSE
)

# produce 3d plot
plot_ly(x = ~x, y = ~y, z = ~z, type = 'mesh3d') %>% 
  layout(scene = list(xaxis = ax, yaxis = ax, zaxis = ax))

【问题讨论】:

    标签: r plotly


    【解决方案1】:

    可以找到解决办法here:

    plot_ly(x = ~x, y = ~y, z = ~z, type = 'mesh3d') %>% 
      layout(scene = list(xaxis = list(showspikes=FALSE), 
                          yaxis = list(showspikes=FALSE), 
                          zaxis = list(showspikes=FALSE)))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-09-08
      • 2017-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-13
      • 2017-04-24
      相关资源
      最近更新 更多