plot3d - how to change box color and remove axis ticks

后端 未结 1 802
感动是毒
感动是毒 2021-01-14 19:28

I\'m trying to make some visual modifications to the default plot3d object. Specifically i would like to put a light box color as a background (only in the box, not the whol

1条回答
  •  隐瞒了意图╮
    2021-01-14 20:23

    You can manually add a bounding box using the rgl.bbox or bbox3d functions:

    plot3d(xvar, yvar, zvar, type = 's', col = colgroup, size = 0.05, alpha = 0.50, 
           radius = 0.2, xlab = 'Cost Leader', ylab = 'Performance Leader', 
           zlab = 'Fashion Leader', axes = FALSE)
    rgl.bbox(xlen = 0, ylen = 0, zlen = 0, color = c('grey100'))
    text3d(x = xvar, y = yvar, z = zvar, text = brands, adj = c(2.5,2.5), cex = 0.7)
    

    3d plot

    0 讨论(0)
提交回复
热议问题