【问题标题】:Telling scatter3D from plot3D library to plot the tick labels告诉 plot3D 库中的 scatter3D 来绘制刻度标签
【发布时间】:2017-07-23 11:00:33
【问题描述】:

我正在使用 plot3D 库的 scatter3D 函数绘制 3D 散点图,但我找不到给出语法的方法,以便绘图包含刻度标签。

我的代码如下:

library(plot3D)
A <- c(0, 1, 0, 1)
B <- c(0, 0, 1, 1)
y <- c(52, 74, 62, 80)
scatter3D(x = A, y = B, z = y,  col = "red", phi = 0, cex = 2, bty = "g", alpha = 0.5 , pch = 20, nticks = 10,
          xlab = "Time Factor", ylab = "Corn Factor", zlab = "Outcome", main = "Experiment with 2 Factors")

【问题讨论】:

    标签: r 3d label scatter-plot plot3d


    【解决方案1】:

    documentation 中,提到了这个论点:

    ...    arguments to be passed down
    

    这些被传递给persp。那里指出,ticktype 默认为“简单”,但可以更改为“详细”。所以添加参数

    ticktype= "detailed"
    

    应该可以。希望这会有所帮助!

    【讨论】:

      猜你喜欢
      • 2020-03-12
      • 2016-04-29
      • 2013-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-21
      • 2014-06-30
      • 2021-11-20
      相关资源
      最近更新 更多