改变y标签plyr R studio

时间:2016-10-20 17:29:21

标签: r

R studio和R一般都是新手,我使用库scatterplot3d有一个三维散点图

我的代码片段如下:

s3d <- scatterplot3d(averageTime$Score, averageTime$Status, averageTime$Time, pch=16,  highlight.3d=TRUE, type="h", main="3D Scatterplot", ylab="status", xlab= "Score", zlab="Time")

现在y轴出现0-5但是我想填写自定义文本来替换它而不是0我希望文本“NA”,1我想要“涵盖”等等

我已尝试应用此处看到的上一个问题,但无效:R: Replace X-axis with own values

如果有更简单的申请,请告诉我。谢谢

enter image description here

1 个答案:

答案 0 :(得分:0)

答案是:

    scatterplot3d(1:10, 1:10, 1:10,  y.ticklabs=c("NA", "Covered", "Blah", "blub", "hmpf", "etc."))